/* ============================================================
   МОБИЛЬНЫЙ ПОИСК
   ============================================================ */

.catalog-mobile-header {
    display: none;
}
.mobile-search-toggle {
    display: none;
}

@media (max-width: 991.98px) {
    .products-grid .row > .product-item,
    .products-grid .product-item {
        padding: 5px 3px !important;
    }
    .mobile-search-toggle {
        display: flex;
    }
    .search-box {
        display: none;
    }
}
.mobileHeaderSearchTrigger,
#mobileBottomNav{
    display: none;
}
/* ============================================================
   МОБИЛЬНАЯ ШАПКА — лого и поиск в одну строку
   ============================================================ */

/* По умолчанию (десктоп) — триггер скрыт */
.mobile-header-search {
    display: none;
}

@media (max-width: 991.98px) {
    .mobile-header-search {
        display: block;
    }
    /* Кнопка-бургер каталога сверху скрыта (открывается из нижней навигации) */
    .catalog-toggle-btn {
        display: none !important;
    }

    /* Обёртка: логотип и триггер поиска в одну строку */
    .wrapper-logo-catalog {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .wrapper-logo-catalog .logo {
        flex: 0 0 auto;
    }

    .mobile-header-search {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1 1 auto;
        min-width: 0;
        height: 44px;
        padding: 0 12px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        color: #212529;
        font-size: 15px;
        transition: border-color 0.2s, background 0.2s;
        -webkit-tap-highlight-color: transparent;
        min-height: 44px;
        margin: 0;
    }

    .mobile-header-search:focus-within {
        background: #fff;
        border-color: #006FF9;
    }

    .mobile-header-search-icon {
        color: #6c757d;
        font-size: 18px;
        flex-shrink: 0;
    }

    .mobile-header-search:focus-within .mobile-header-search-icon {
        color: #006FF9;
    }

    .mobile-header-search-input {
        flex: 1 1 auto;
        min-width: 0;
        height: 100%;
        border: none;
        outline: none;
        background: transparent;
        font-size: 15px;
        color: #212529;
        padding: 0;
        margin: 0;
        font-family: inherit;
    }

    .mobile-header-search-input::placeholder {
        color: #adb5bd;
    }

    /* Крестик очистки внутри строки поиска */
    .mobile-header-search .mobile-search-clear-btn {
        position: static;
        transform: none;
        right: auto;
        top: auto;
        padding: 4px;
        display: none;
        color: #6c757d;
        background: transparent;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-header-search .mobile-search-clear-btn:hover {
        color: #006FF9;
    }

    /* Живая панель поиска — раскрывается под строкой */
    .mobile-search-panel {
        order: 4;
        flex: 1 0 100%;
        width: 100%;
        max-width: 100%;
        margin-top: 6px;
        display: none;
    }

    .mobile-search-panel.active,
    .mobile-search-panel[style*="block"] {
        display: block !important;
    }
}

/* ============================================================
   МОБИЛЬНАЯ ПАНЕЛЬ ПОИСКА — общие стили
   ============================================================ */

.mobile-search-panel {
    width: 100%;
    margin-top: 8px;
    background: #fff;
    border-radius: 10px;
    position: relative;
    z-index: 20;
}

@media (min-width: 992px) {

    .mobile-search-panel {
        display: none !important;
    }
}

.mobile-search-panel-header {
    display: flex;
    width: 100%;
    gap: 0;
}

.mobile-search-panel-header form {
    flex: 1 1 100%;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search-input {
    width: 100%;
    padding: 10px 80px 10px 15px; /* справа место под крестик и кнопку */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.mobile-search-input:focus {
    border-color: #006FF9;
}

/* Крестик очистки */
.mobile-search-clear-btn {
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    display: none;
}

.mobile-search-clear-btn:hover {
    color: #006FF9;
}

/* Кнопка "найти" — показывается только когда есть текст (управляется из JS) */
.mobile-search-submit-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #006FF9;
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-search-submit-btn:hover {
    background: #0052cc;
}

/* Кнопки закрытия панели больше нет — скрываем на всякий случай */
.mobile-search-close-btn {
    display: none !important;
}

.mobile-search-results {
    position: absolute;
    top: 59px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 0 0 10px 10px;
    width: 94%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-search-results-body {
    padding: 10px;
}

.mobile-search-results-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

.mobile-search-results-footer a {
    color: #006FF9;
    text-decoration: none;
    font-weight: 500;
}

.mobile-search-results-footer a:hover {
    text-decoration: underline;
}

.mobile-search-result-item {
    display: flex;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.mobile-search-result-item:hover {
    background: #f8f9fa;
}

.mobile-search-result-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    justify-content: center;
    align-items: center;
    display: flex;
}

.mobile-search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-search-result-info {
    flex: 1;
    margin-left: 12px;
    min-width: 0;
}

.mobile-search-result-name {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.mobile-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.mobile-no-results i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

/* ============================================================
   АДАПТИВ ДЛЯ МАЛЫХ ЭКРАНОВ
   ============================================================ */

@media (max-width: 400px) {
    .header-icons {
        gap: 8px;
    }
    .header-icon i {
        font-size: 1.2rem;
    }
    .product-image-wrapper {
        height: 160px;
    }
    .current-price {
        font-size: 1.2rem;
    }
    .btn-add-cart {
        font-size: 0.9rem;
        padding: 8px;
    }
    .catalog-main-item span {
        font-size: 0.85rem;
    }
}

/* Скрываем дублирующие иконки из хедера на мобильных (они в нижней панели) */
@media (max-width: 991.98px) {
    .m-bottom{
        flex-direction: column;
    }
    .m-t-m{
        padding-right: 0;
    }
    #mobileBottomNav{
        display: flex;
    }
    ul.list-unstyled {
        gap: 10px;
        display: flex;
        flex-direction: column;
        margin-top: 10px !important;
    }
    .info-m-bottom{
        flex-direction: column;
        gap: 5px !important;
    }
    .mobile-bottom-nav .comparison-count-mobile,
    .mobile-bottom-nav .wishlist-count-mobile {
        position: absolute;
        min-width: 18px;
        height: 18px;
        align-items: center;
        justify-content: center;
        top: 2px !important;
        left: 54px;
        background: #006FF9;
    }
    .header-icons .name-header-icon {
        display: none !important;
    }
    .header-icon.mobile-search-toggle {
        display: none !important;
    }
    .mobile-header-search .search-btn {
        position: static;
        transform: none;
        right: auto;
        top: auto;
        display: none;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 8px;
        background: #006FF9;
        color: #fff;
        flex-shrink: 0;
        padding: 0;
        cursor: pointer;
    }

    .mobile-header-search .search-btn:hover {
        background: #0052cc;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 14px;
        scroll-behavior: smooth;
    }
    body {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }
    button, a, input, select, textarea {
        min-height: 35px;
        min-width: 35px;
    }
    footer.bg-dark.text-white.py-5 {
        padding-left: 25px;
    }
    .header-icon {
        line-height: 20px;
    }
    footer .mb-3, .list-unstyled, footer p {
        text-align: left;
        margin: 0 !important;
    }
    footer .mb-2 {
        margin: 0 !important;
    }
    .editable-setting {
        padding: 0;
    }
    .top-bar-contacts .top-bar-links a {
        display: block;
        min-height: auto;
    }
    .menu-bottom {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 15px;
        flex-direction: row !important;
    }
    .product-buy .d-flex.align-items-center.justify-content-between.mb-3 {
        flex-flow: column;
        align-items: self-start !important;
    }
    .wrapper-logo-catalog {
        justify-content: space-between;
        gap: 10px;
        margin-top: 5px;
        padding-bottom: 5px;
    }
    .main-header {
        padding: 5px 0;
        position: sticky;
        top: 0;
        z-index: 1030;
        padding-bottom: 0;
    }
    .header-wrapper {
        flex-wrap: wrap;
        gap: 0px;
    }
    .search-results-body {
        max-height: 600px;
    }
    .price-range-slider .slider-container {
        height: 5px !important;
    }
    input[data-role="min"], input[data-role="max"] {
        top: -15px !important;
    }
    .logo img {
        height: 35px !important;
        width: 45px;
    }
    .catalog-btn {
        padding: 5px 15px;
        font-size: 0.9rem;
    }
    .catalog-btn span {
        display: none;
    }
    .carousel-indicators button {
        min-height: 5px;
    }
    .search-box {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }
    .search-input {
        padding: 10px 45px 10px 15px;
        font-size: 0.95rem;
    }
    .search-btn {
        width: 36px;
        height: 36px;
    }
    .header-icons {
        gap: 15px;
    }
    .header-icon i {
        font-size: 1.3rem;
    }
    .wishlist-count, .cart-count, .comparison-count {
        top: 10px !important;
        left: 45px !important;
        font-size: 0.65rem;
        padding: 2px 5px;
        min-width: 16px;
        height: 16px;
    }
    button.cart-popup-item-remove {
        font-size: 24px;
    }
    .hero-slider.container {
        padding: 0 10px;
        margin-top: 15px;
    }
    .hero-slider .carousel-item {
        height: 280px;
    }
    .hero-slider .carousel-item img {
        object-fit: cover;
    }
    .custom-carousel-next {
        right: -5px !important;
        top: 45% !important;
    }
    .custom-carousel-prev {
        left: -10px !important;
        top: 45% !important;
    }
    .hero-slider .carousel-caption {
        bottom: 25% !important;
        left: 5%;
        right: 5%;
        text-align: center;
    }
    .hero-slider .carousel-caption h2 {
        font-size: 1.3rem !important;
        margin-bottom: 8px;
    }
    .hero-slider .carousel-caption .lead {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    .hero-slider .carousel-caption .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    .hero-slider .carousel-control-prev, .hero-slider .carousel-control-next {
        width: 36px;
        height: 36px;
    }
    .hero-slider .carousel-control-prev i, .hero-slider .carousel-control-next i {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .section-subtitle {
        font-size: 0.95rem;
    }
    .category-card .card-body {
        padding: 20px 15px !important;
    }
    .category-icon {
        font-size: 3rem;
    }
    .category-card .card-title {
        font-size: 0.95rem;
    }
    .product-card {
        border-radius: 12px;
    }
    .product-image-wrapper {
        height: 180px;
    }
    .product-image-wrapper img {
        max-height: 160px;
    }
    .product-name {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    .product-sku {
        font-size: 0.75rem;
    }
    .product-price {
        flex-wrap: wrap;
        gap: 5px;
    }
    .current-price {
        font-size: 1.3rem;
    }
    .old-price {
        font-size: 0.85rem;
    }
    .product-stock .badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    .btn-wishlist, .btn-compare {
        width: 30px;
        height: 30px;
    }
    .btn-compare {
        right: 50px;
    }
    .btn-wishlist i, .btn-compare i {
        font-size: 13px;
    }
    .cart-quantity {
        max-width: 100%;
    }
    .cart-quantity .input-group {
        border-radius: 6px;
    }
    .cart-quantity .btn {
        width: 32px;
        height: 32px;
    }
    .cart-quantity .qty-input {
        width: 45px;
        font-size: 0.95rem;
    }
    .btn-add-cart {
        padding: 10px;
        font-size: 0.95rem;
        border-radius: 0 0 8px 8px;
    }
    .catalog-container {
        max-width: 100%;
    }
    .catalog-sidebar {
        width: 100%;
        position: relative;
        height: auto;
        max-height: 40vh;
    }
    .catalog-main-item {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    .catalog-main-item i:first-child {
        font-size: 1.1rem;
    }
    .catalog-content {
        flex-direction: column;
    }
    .catalog-subcategories {
        padding: 15px;
    }
    .subcategory-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    .subcategory-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .subcategory-group h4 {
        font-size: 0.95rem;
    }
    .subcategory-list a {
        font-size: 0.85rem;
        padding: 5px 0;
    }
    .cart-popup {
        max-width: 100%;
        width: 100%;
        right: -100%;
    }
    .cart-popup-header {
        padding: 12px 15px;
    }
    .cart-popup-title {
        font-size: 1.1rem;
    }
    .cart-popup-item {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }
    .cart-popup-item-image {
        width: 100%;
        max-width: 200px;
        height: 120px;
    }
    .cart-popup-item-info {
        text-align: center;
    }
    .cart-popup-item-name {
        font-size: 1rem;
    }
    .catalog-toolbar div .col-md-6.text-end {
        display: none;
    }
    .form-check-input[type=checkbox] {
        min-width: 20px;
        min-height: 20px;
    }
    .cart-popup-item-qty .qty-control {
        justify-content: center;
    }
    .cart-popup-actions {
        flex-direction: column;
    }
    .cart-popup-actions .btn {
        width: 100%;
    }
    .about-section {
        text-align: center;
        padding: 0 25px;
    }
    .about-section .row.align-items-center {
        flex-direction: column;
    }
    .about-section .col-lg-6 {
        width: 100%;
        margin-bottom: 30px;
        text-align: justify;
    }
    .about-section h2 {
        font-size: 1.5rem;
    }
    .stat-card {
        padding: 15px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }
    .attribute-filter .form-check {
        border-radius: 4px;
        transition: background 0.2s;
        display: flex;
        gap: 5px;
        padding: 4px 20px;
        align-items: center;
    }
    input#mobileInStockFilter {
        margin: 0 5px;
    }
    .contact-card {
        margin-bottom: 15px;
    }
    .contact-icon {
        font-size: 2.5rem;
    }
    .map-container {
        height: 250px !important;
    }
    .map-container iframe {
        width: 100% !important;
        height: 250px !important;
    }
    footer .row.g-4 {
        text-align: center;
    }
    footer .col-md-6 {
        margin-bottom: 10px;
    }
    footer .d-flex.gap-3 {
        justify-content: center;
    }
    .wrapper-search-icon {
        display: none;
        flex-direction: column-reverse;
        gap: 3px;
        margin-top: 5px;
    }
    @media (hover: none) {
        .product-card:hover, .category-card:hover, .feature-card:hover {
            transform: none;
            box-shadow: 0 2px 15px rgba(0,0,0,0.08);
        }
        .btn-wishlist:hover, .btn-compare:hover {
            transform: none;
        }
    }
    .catalog-container {
        flex-direction: column;
    }
    .catalog-sidebar {
        width: 100%;
        min-width: 100%;
        max-height: 180px;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    .catalog-main-list {
        display: flex;
        overflow-x: auto;
        gap: 4px;
        padding: 10px 15px;
    }
    .catalog-main-item {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 10px 15px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    .catalog-main-item:hover,
    .catalog-main-item.active {
        border-left: none;
        border-bottom-color: #006FF9;
    }
    .catalog-main-item-icon {
        width: 28px;
        height: 28px;
    }
    .catalog-main-item-text {
        font-size: 13px;
    }
    .catalog-main-item-arrow {
        display: none;
    }
    .catalog-subcategories {
        padding: 20px 15px;
    }
    .subcategory-columns {
        flex-direction: column;
        gap: 10px;
    }
    .subcategory-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .subcategory-group {
        padding: 10px;
        margin-bottom: 0;
    }
    .subcategory-group-image {
        width: 40px;
        height: 40px;
    }
    .subcategory-group h4 {
        font-size: 13px;
    }
    .subcategory-side-panel {
        margin-top: 15px;
        padding-top: 15px;
    }
}

.catalog-sidebar, .catalog-subcategories, .cart-popup-body {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

input:focus, select:focus, textarea:focus {
    font-size: 16px !important;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

img {
    image-rendering: -webkit-optimize-contrast;
}

img.category-img {
    height: 100px;
}

/* ============================================================
   ПЛАНШЕТЫ
   ============================================================ */

@media (min-width: 768px) and (max-width: 991px) {
    .header-wrapper {
        gap: 20px;
    }
    .logo img {
        width: 200px;
    }
    .search-box {
        max-width: 400px;
    }
    .hero-slider .carousel-item {
        height: 350px;
    }
    .hero-slider .carousel-caption h2 {
        font-size: 1.8rem;
    }
    .subcategory-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .cart-popup {
        max-width: 500px;
    }
    .product-card .cart-quantity {
        max-width: 140px;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image-wrapper img, .slider-image img, .cart-popup-item-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================================
   СЛАЙДЕРЫ ЦЕН (МОБИЛЬНЫЕ ФИЛЬТРЫ)
   ============================================================ */

@media (max-width: 991.98px) {
    .sidebar-categories {
        display: none;
    }
    .slider-container {
        position: relative;
        height: 6px;
        margin: 15px 0;
    }
    .slider-container input[type="range"] {
        position: absolute;
        width: 100%;
        height: 6px;
        top: 0;
        left: 0;
        margin: 0;
        padding: 0;
        background: transparent;
        pointer-events: none;
        -webkit-appearance: none;
        appearance: none;
    }
    .slider-container input[type="range"]::-webkit-slider-thumb {
        pointer-events: auto;
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #006FF9;
        border: 2px solid #fff;
        box-shadow: 0 2px 4px rgba(0, 111, 249, 0.4);
        cursor: pointer;
        margin-top: -6px;
    }
    .slider-container input[data-role="min"] {
        pointer-events: none;
        z-index: 3;
    }
    .slider-container input[data-role="max"] {
        pointer-events: auto;
        z-index: 2;
    }
    .slider-container input[data-role="min"]::-webkit-slider-thumb {
        pointer-events: auto;
        z-index: 5;
    }
    .slider-container input[data-role="max"]::-webkit-slider-thumb {
        z-index: 4;
    }
    .range-fill {
        position: absolute;
        height: 100%;
        background: #006FF9;
        border-radius: 3px;
        z-index: 1;
        pointer-events: none;
    }
    #mobileFilters .slider-container {
        position: relative;
        height: 6px;
        margin: 15px 0;
    }
    #mobileFilters .range-track {
        position: relative;
        height: 6px;
        background: #e9ecef;
        border-radius: 3px;
        margin: 12px 0;
    }
    #mobileFilters .range-fill {
        position: absolute;
        height: 100%;
        background: #006FF9;
        border-radius: 3px;
        z-index: 1;
    }
    #mobileFilters input[type="range"] {
        position: absolute;
        width: 100%;
        height: 6px;
        top: 0;
        left: 0;
        margin: 0;
        padding: 0;
        background: transparent;
        -webkit-appearance: none;
        appearance: none;
    }
    #mobileFilters input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #006FF9;
        border: 2px solid #fff;
        box-shadow: 0 2px 4px rgba(0, 111, 249, 0.4);
        cursor: pointer;
        margin-top: -6px;
    }
    #mobileFilters input[data-role="min"] {
        pointer-events: none;
        z-index: 3;
    }
    #mobileFilters input[data-role="max"] {
        pointer-events: auto;
        z-index: 2;
    }
    #mobileFilters input[data-role="min"]::-webkit-slider-thumb {
        pointer-events: auto;
        z-index: 5;
    }
    #mobileFilters input[data-role="max"]::-webkit-slider-thumb {
        z-index: 4;
    }
    #mobileFilters input[type="range"]::-moz-range-thumb {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #006FF9;
        border: 2px solid #fff;
        box-shadow: 0 2px 4px rgba(0, 111, 249, 0.4);
        cursor: pointer;
    }
    #mobilePriceMinSlider, #mobilePriceMaxSlider {
        position: absolute;
        width: 100%;
        height: 6px;
        top: 0;
        left: 0;
        margin: 0;
        padding: 0;
        background: transparent;
        pointer-events: none;
        -webkit-appearance: none;
        appearance: none;
    }
    #mobilePriceMinSlider {
        z-index: 3;
    }
    #mobilePriceMaxSlider {
        z-index: 2;
    }
    #mobilePriceMinSlider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #006FF9;
        border: 2px solid #fff;
        box-shadow: 0 2px 4px rgba(0, 111, 249, 0.4);
        cursor: pointer;
        pointer-events: auto;
        position: relative;
        z-index: 5;
        margin-top: -6px;
    }
    #mobilePriceMaxSlider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #006FF9;
        border: 2px solid #fff;
        box-shadow: 0 2px 4px rgba(0, 111, 249, 0.4);
        cursor: pointer;
        pointer-events: auto;
        position: relative;
        z-index: 4;
        margin-top: -6px;
    }
    #mobilePriceMinSlider::-moz-range-thumb {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #006FF9;
        border: 2px solid #fff;
        box-shadow: 0 2px 4px rgba(0, 111, 249, 0.4);
        cursor: pointer;
        pointer-events: auto;
    }
    #mobilePriceMaxSlider::-moz-range-thumb {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #006FF9;
        border: 2px solid #fff;
        box-shadow: 0 2px 4px rgba(0, 111, 249, 0.4);
        cursor: pointer;
        pointer-events: auto;
    }
    #mobilePriceMinSlider::-webkit-slider-runnable-track, #mobilePriceMaxSlider::-webkit-slider-runnable-track {
        width: 100%;
        height: 6px;
        background: transparent;
        border-radius: 3px;
    }
    #mobilePriceMinSlider::-moz-range-track, #mobilePriceMaxSlider::-moz-range-track {
        width: 100%;
        height: 6px;
        background: transparent;
        border-radius: 3px;
    }
}

@media (min-width: 992px) {
    #mobileFilters {
        display: none;
    }
}

/* ============================================================
   МОБИЛЬНОЕ МЕНЮ КАТАЛОГА — ОДНА КОЛОНКА, ПОШАГОВАЯ НАВИГАЦИЯ
   ============================================================ */

@media (max-width: 991.98px) {

    .catalog-sidebar-wrapper {
        display: flex !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        z-index: auto !important;
        overflow: visible !important;
        align-items: center;
    }

    .catalog-sidebar-wrapper .catalog-sidebar-menu {
        display: flex !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        max-width: 100%;
        height: 85vh;
        max-height: 85vh;
        background: #fff;
        z-index: 1092;
        flex-direction: column;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        overflow: hidden;
    }

    .catalog-sidebar-wrapper.active .catalog-sidebar-menu {
        transform: translateY(0);
    }

    .catalog-sidebar-wrapper.active::before {
        content: '';
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1091;
        opacity: 1;
        animation: catalogOverlayIn 0.25s ease;
    }

    @keyframes catalogOverlayIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    .catalog-mobile-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 15px;
        background: linear-gradient(135deg, #006FF9 0%, #0052cc 100%);
        color: #fff;
        flex-shrink: 0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 2;
        border-radius: 16px 16px 0 0;
    }

    .catalog-mobile-back,
    .catalog-mobile-close {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: #fff;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.2s;
        font-size: 18px;
    }

    .catalog-mobile-back:hover,
    .catalog-mobile-close:hover {
        background: rgba(255, 255, 255, 0.35);
    }

    .catalog-mobile-back {
        display: none;
    }

    .catalog-mobile-back.visible {
        display: flex;
    }

    .catalog-mobile-title {
        flex: 1;
        font-size: 16px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
    }

    .catalog-sidebar-content-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    .catalog-sidebar-body {
        width: 100%;
        min-width: 0;
        max-height: none;
        border-right: none;
        border-bottom: none;
        padding: 0;
        overflow: visible;
    }

    .catalog-subcategories-wrapper {
        display: contents;
    }

    .catalog-subcategories-panel,
    .catalog-sub-panel {
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        background: #fff;
        z-index: 5;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        display: none;
    }

    .catalog-subcategories-panel.active,
    .catalog-sub-panel.active {
        display: block;
    }

    .subcategories-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .subcategory-item {
        padding: 0;
        border-radius: 0;
        margin: 0;
    }

    .subcategory-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #212529;
        text-decoration: none;
    }

    .subcategory-link:hover,
    .subcategory-item.active .subcategory-link {
        background: #f0f7ff;
    }

    .subcategory-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .subcategory-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 3px;
    }

    .subcategory-icon i {
        font-size: 18px;
        color: #006FF9;
    }

    .subcategory-info {
        flex: 1;
        min-width: 0;
    }

    .subcategory-name {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.3;
    }

    .subcategory-arrow {
        font-size: 14px;
        color: #adb5bd;
        flex-shrink: 0;
    }

    .catalog-sidebar-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .catalog-sidebar-item {
        margin: 0;
        border-radius: 0;
    }

    .catalog-sidebar-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #212529;
        text-decoration: none;
        border-radius: 0;
    }

    .catalog-sidebar-link:hover,
    .catalog-sidebar-item.active .catalog-sidebar-link {
        background: #f0f7ff;
    }

    .catalog-sidebar-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .catalog-sidebar-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 3px;
    }

    .catalog-sidebar-icon i {
        font-size: 18px;
        color: #006FF9;
    }

    .catalog-sidebar-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .catalog-sidebar-name {
        font-size: 14px;
        font-weight: 600;
        color: #006FF9;
        line-height: 1.3;
    }

    .catalog-sidebar-desc {
        font-size: 11px;
        color: #6c757d;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .catalog-sidebar-arrow {
        font-size: 14px;
        color: #adb5bd;
        flex-shrink: 0;
    }

    .catalog-dropdown-menu {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .catalog-sidebar-wrapper .catalog-sidebar-menu {
        height: 90vh;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .catalog-sidebar-wrapper .catalog-sidebar-menu {
        width: 100%;
        max-width: 100%;
        box-shadow: none;
    }
}

/* ============================================================
   МОБИЛЬНАЯ КОРЗИНА — КОМПАКТНАЯ ВЁРСТКА КАРТОЧЕК
   ============================================================ */

@media (max-width: 991.98px) {

    .cart-page .container,
    .checkout-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .cart-page-header {
        padding: 12px 0;
    }

    .cart-page-title {
        font-size: 1.25rem;
        margin: 0;
    }

    .cart-header-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        width: 100%;
        margin-top: 8px;
    }
    span.form-check-label.small a {
        min-height: auto;
    }
    input.form-check-input {
        min-height: auto;
        min-width: auto;
    }
    .btn-select-all,
    .btn-deselect-all {
        flex: 1;
        min-width: 0;
        font-size: 0.85rem;
        padding: 8px 10px;
        white-space: nowrap;
    }

    .cart-page .cart-items-list .cart-product-card {
        display: grid !important;
        grid-template-columns: 22px 80px minmax(0, 1fr) auto !important;
        grid-template-areas:
            "check  image  info    remove"
            "check  image  price   remove"
            "qty    qty    total   total" !important;
        gap: 4px 10px !important;
        padding: 10px !important;
        margin-bottom: 10px !important;
        border-radius: 12px !important;
        background: #fff !important;
        border: 1px solid #e9ecef !important;
        align-items: start !important;
    }

    .cart-card-checkbox {
        grid-area: check !important;
        align-self: start !important;
        padding-top: 4px !important;
    }

    .cart-card-checkbox .form-check-input {
        width: 20px !important;
        height: 20px !important;
        margin: 0 !important;
    }

    .cart-card-image {
        grid-area: image !important;
        width: 80px !important;
        height: 80px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        background: #f8f9fa !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        position: relative !important;
    }

    .cart-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        padding: 4px !important;
    }

    .cart-card-image .cart-item-badges {
        position: absolute !important;
        top: 2px !important;
        left: 2px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        z-index: 2 !important;
    }

    .cart-card-image .cart-item-badges .badge {
        font-size: 0.6rem !important;
        padding: 2px 5px !important;
    }

    .cart-card-info {
        grid-area: info !important;
        min-width: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        padding-top: 2px !important;
    }

    .cart-item-name {
        font-size: 0.85rem !important;
        line-height: 1.25 !important;
        margin: 0 !important;
    }

    .cart-item-name a {
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        color: #2c3e50 !important;
        text-decoration: none !important;
    }

    .cart-item-sku {
        font-size: 0.7rem !important;
        color: #95a5a6 !important;
        margin: 0 !important;
    }

    .cart-item-sku .bi-clipboard,
    .cart-item-sku i.bi {
        display: none !important;
    }

    .cart-delivery-info {
        font-size: 0.7rem !important;
        margin-top: 2px !important;
        color: #006FF9 !important;
    }

    .cart-card-price {
        grid-area: price !important;
        align-self: start !important;
        margin: 2px 0 0 0 !important;
        display: flex !important;
        align-items: baseline !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    .cart-card-price .price-current-cart {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: #006FF9 !important;
    }

    .cart-card-price .price-old-cart {
        font-size: 0.75rem !important;
        color: #95a5a6 !important;
        text-decoration: line-through !important;
    }

    .cart-card-remove {
        grid-area: remove !important;
        align-self: start !important;
        padding: 0 !important;
    }

    .btn-remove-cart {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #fef2f2 !important;
        color: #dc3545 !important;
        border: none !important;
        font-size: 0.9rem !important;
        padding: 0 !important;
    }

    .btn-remove-cart:active {
        background: #dc3545 !important;
        color: #fff !important;
    }

    .cart-card-qty {
        grid-area: qty !important;
        align-self: center !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .qty-control-cart {
        display: inline-flex !important;
        align-items: center !important;
        border: 1px solid #e9ecef !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: #fff !important;
        height: 34px !important;
    }

    .qty-control-cart .btn-qty {
        width: 34px !important;
        height: 34px !important;
        border: none !important;
        background: #f8f9fa !important;
        color: #006FF9 !important;
        font-size: 0.85rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    .qty-control-cart .btn-qty:active {
        background: #006FF9 !important;
        color: #fff !important;
    }

    .qty-control-cart .qty-input-cart {
        width: 46px !important;
        height: 34px !important;
        border: none !important;
        border-left: 1px solid #e9ecef !important;
        border-right: 1px solid #e9ecef !important;
        text-align: center !important;
        font-weight: 700 !important;
        font-size: 0.9rem !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .qty-control-cart .qty-input-cart:focus {
        outline: none !important;
        background: #f0f7ff !important;
    }

    .cart-card-total {
        grid-area: total !important;
        align-self: center !important;
        justify-self: end !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: #006FF9 !important;
        white-space: nowrap !important;
    }

    .cart-card-total .text-muted {
        font-size: 0.8rem !important;
    }

    .checkout-summary-card {
        position: sticky !important;
        bottom: 0 !important;
        border-radius: 14px 14px 0 0 !important;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #e9ecef !important;
        background: #fff !important;
        margin: 0 -12px !important;
        padding: 14px 16px !important;
        z-index: 20 !important;
    }

    .checkout-summary-body {
        padding: 0 !important;
    }

    .summary-row {
        font-size: 0.9rem !important;
        padding: 4px 0 !important;
    }

    .summary-total {
        font-size: 1.15rem !important;
    }

    .prepayment-note {
        font-size: 0.75rem !important;
        padding: 8px 10px !important;
        margin-top: 8px !important;
    }

    .cart-actions-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 12px !important;
    }

    .cart-actions-row > button {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
        min-height: 44px !important;
    }

    .btn-checkout-step2 {
        order: -1 !important;
        font-weight: 700 !important;
    }

    .empty-cart-state {
        padding: 40px 15px !important;
        text-align: center !important;
    }

    .empty-cart-icon {
        font-size: 4rem !important;
        margin-bottom: 15px !important;
    }

    .empty-cart-state h3 {
        font-size: 1.15rem !important;
    }

    .empty-cart-state .btn-catalog {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 12px 20px !important;
        min-height: 44px !important;
    }

    .checkout-form-card {
        margin-bottom: 10px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .checkout-form-header {
        padding: 12px 14px !important;
        font-size: 0.95rem !important;
    }

    .checkout-form-body {
        padding: 12px 14px !important;
    }

    .form-control-cart {
        font-size: 16px !important;
        padding: 10px 12px !important;
        min-height: 42px !important;
    }

    .customer-type-toggle {
        flex-direction: column !important;
    }

    .customer-type-btn {
        width: 100% !important;
        padding: 12px !important;
        min-height: 44px !important;
        justify-content: center !important;
    }

    .checkout-items-list {
        max-height: 300px !important;
        overflow-y: auto !important;
    }

    .checkout-item-row {
        display: grid !important;
        grid-template-columns: 44px 1fr auto !important;
        grid-template-areas:
            "img name qty"
            "img total total" !important;
        gap: 6px 10px !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .checkout-item-image {
        grid-area: img !important;
        width: 44px !important;
        height: 44px !important;
    }

    .checkout-item-info {
        grid-area: name !important;
        font-size: 0.8rem !important;
    }

    .checkout-item-quantity {
        grid-area: qty !important;
        font-size: 0.8rem !important;
        color: #6c757d !important;
    }

    .checkout-item-total {
        grid-area: total !important;
        font-size: 0.85rem !important;
        text-align: right !important;
    }

    .form-check-cart {
        padding: 10px 12px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        border-radius: 8px !important;
        margin-bottom: 4px !important;
    }

    .form-check-cart .form-check-input {
        margin: 0 10px 0 0 !important;
        flex-shrink: 0 !important;
    }

    .btn-checkout-final,
    .btn-print-order,
    .btn-back-to-cart-summary {
        width: 100% !important;
        padding: 14px 20px !important;
        min-height: 48px !important;
        border-radius: 10px !important;
        font-size: 0.95rem !important;
    }

    #deletedItemsModal .modal-dialog {
        margin: 8px !important;
        max-height: calc(100vh - 16px) !important;
    }

    #deletedItemsModal .modal-footer {
        flex-direction: column-reverse !important;
        gap: 6px !important;
        padding: 10px !important;
    }

    #deletedItemsModal .modal-footer > button,
    #deletedItemsModal .modal-footer > div > button {
        width: 100% !important;
        min-height: 44px !important;
    }

    .cart-summary-sticky {
        position: static !important;
    }

    .checkout-summary-card .summary-row:not(:last-of-type),
    .checkout-summary-card .prepayment-note {
        display: none;
    }

    .checkout-summary-card {
        padding: 10px 12px;
    }

    .checkout-summary-card .summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1rem;
    }

    .cart-actions-row {
        margin-top: 8px !important;
    }

    .btn-clear-cart-mini,
    .btn-restore-deleted,
    .btn-estimate-from-cart {
        font-size: 0.8rem;
        padding: 8px;
    }
}

@media (max-width: 400px) {
    .cart-page .cart-items-list .cart-product-card {
        grid-template-columns: 20px 70px minmax(0, 1fr) auto !important;
        gap: 4px 8px !important;
        padding: 8px !important;
    }

    .cart-card-image {
        width: 70px !important;
        height: 70px !important;
    }

    .cart-item-name {
        font-size: 0.8rem !important;
    }

    .cart-card-price .price-current-cart {
        font-size: 0.9rem !important;
    }

    .cart-card-total {
        font-size: 0.9rem !important;
    }

    .qty-control-cart .btn-qty {
        width: 32px !important;
    }

    .qty-control-cart .qty-input-cart {
        width: 42px !important;
        font-size: 0.85rem !important;
    }

    .summary-total {
        font-size: 1.05rem !important;
    }
}

/* ============================================================
   МОБИЛЬНАЯ НИЖНЯЯ НАВИГАЦИЯ
   ============================================================ */

@media (max-width: 991.98px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e9ecef;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1040;
        padding: 0;
        height: 60px;
    }

    .mobile-bottom-nav .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 5px;
        text-decoration: none;
        color: #6c757d;
        transition: all 0.2s ease;
        min-height: 100%;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 1.2rem;
        transition: transform 0.2s ease;
    }

    .mobile-bottom-nav .nav-item span {
        font-size: 0.7rem;
        font-weight: 500;
        white-space: nowrap;
    }

    .mobile-bottom-nav .nav-item:hover {
        color: #006FF9;
        background: #f8f9fa;
    }

    .mobile-bottom-nav .nav-item.active {
        color: #006FF9;
    }

    .mobile-bottom-nav .nav-item.active i {
        transform: scale(1.1);
    }

    .mobile-bottom-nav .nav-item::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: #006FF9;
        border-radius: 3px 3px 0 0;
        transition: width 0.2s ease;
    }

    .mobile-bottom-nav .nav-item.active::before {
        width: 100%;
    }

    .mobile-bottom-nav .nav-item.position-relative {
        position: relative;
    }

    .mobile-bottom-nav .cart-count-mobile {
        position: absolute;
        min-width: 18px;
        height: 18px;
        align-items: center;
        justify-content: center;
        top: 2px !important;
        left: 54px;
        background: #006FF9;
    }

    @keyframes pulseBadge {
        0% { transform: scale(0.8); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }

    body {
        padding-bottom: 60px;
    }
}

/* ============================================================
   ВЫПАДАЮЩЕЕ МЕНЮ ДОПОЛНИТЕЛЬНЫХ СТРАНИЦ
   ============================================================ */

@media (max-width: 991.98px) {
    .mobile-menu-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        display: none;
    }

    .mobile-menu-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-dropdown.show .mobile-menu-overlay {
        opacity: 1;
    }

    .mobile-menu-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 70vh;
        overflow-y: auto;
    }

    .mobile-menu-dropdown.show .mobile-menu-content {
        transform: translateY(0);
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #e9ecef;
        position: sticky;
        top: 0;
        background: #ffffff;
        z-index: 1;
    }

    .mobile-menu-header h5 {
        margin: 0;
        font-weight: 600;
        font-size: 1.25rem;
        color: #212529;
    }

    .mobile-menu-close {
        background: #f8f9fa;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6c757d;
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-menu-close:hover {
        background: #e9ecef;
        color: #212529;
    }

    .mobile-menu-list {
        list-style: none;
        margin: 0;
        padding: 10px 0;
    }

    .mobile-menu-list li {
        margin: 0;
    }

    .mobile-menu-list a {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px 20px;
        color: #212529;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        transition: background 0.2s ease;
        border-bottom: 1px solid #f8f9fa;
    }

    .mobile-menu-list a:last-child {
        border-bottom: none;
    }

    .mobile-menu-list a:hover,
    .mobile-menu-list a:active {
        background: #f8f9fa;
        color: #006FF9;
    }

    .mobile-menu-list a i {
        font-size: 1.3rem;
        width: 24px;
        text-align: center;
        color: #006FF9;
    }
}

/* ============================================================
   ПЛАНШЕТЫ (768–991px) — корзина в одну строку
   ============================================================ */

@media (min-width: 768px) and (max-width: 991.98px) {
    .cart-page .cart-items-list .cart-product-card {
        display: grid !important;
        grid-template-columns: 22px 90px minmax(0, 1fr) 110px 120px 100px auto !important;
        grid-template-areas: "check image info price qty total remove" !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 12px !important;
    }

    .cart-card-checkbox { grid-area: check !important; }
    .cart-card-image    { grid-area: image !important; width: 90px !important; height: 90px !important; }
    .cart-card-info     { grid-area: info !important; }
    .cart-card-price    { grid-area: price !important; align-self: center !important; margin: 0 !important; flex-direction: column !important; gap: 2px !important; }
    .cart-card-qty      { grid-area: qty !important; align-self: center !important; }
    .cart-card-total    { grid-area: total !important; align-self: center !important; justify-self: end !important; }
    .cart-card-remove   { grid-area: remove !important; }

    .cart-card-price .price-current-cart { font-size: 1rem !important; }
    .cart-item-name { font-size: 0.9rem !important; }

    .checkout-summary-card {
        margin: 0 !important;
        border-radius: 14px !important;
        position: sticky !important;
        top: 90px !important;
        bottom: auto !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06) !important;
    }
}
