/* ==========================================================================
   RESPONSIVE.CSS — единый файл адаптива Smileti
   Собран из 4 файлов (mobile768.css, mobile425.css, mobile425-un.css, mobile768-un.css)
   Порядок блоков сохраняет исходный каскад, чтобы визуальный результат не изменился.
   Внутри убраны найденные дубли и один явно конфликтующий блок.
   ========================================================================== */

/* ==========================================================================
   БЛОК 1 — было: mobile768.css (общая адаптация ≤768px + мелкие правки ≤425px)
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --radius-main: 16px;
        --radius-card: 8px;
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        font-family: 'Montserrat', sans-serif;
    }

    body {
        background-color: var(--bg-main);
        color: var(--text-dark);
        padding-top: 60px;
    }

     html, body {
        padding-top: 60px;
    }

    .products-grid {
        width: 100%;
        box-sizing: border-box;
    }

    .container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 15px;
        box-sizing: border-box;
    }



    .header_row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .main-header {
        background-color: white;
        padding: 10px 0;
        box-shadow: 0 4px 20px rgba(62, 50, 53, 0.04);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        font-size: 18px;
        color: var(--text-dark);
    }

    .logo-icon {
        background: linear-gradient(135deg, var(--accent-orange), #ff7b70);
        width: 30px;
        height: 30px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    .main-nav ul {
        display: none;
    }

    .main-nav a {
        display: none;
    }

    .header-controls {
        display: flex;
        gap: 15px;
        font-size: 16px;
        cursor: pointer;
    }

    .hero-banner {
        margin-top: 0;
        padding: 15px;
    }

    .hero-text {
        width: 100%;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 15px;
        color: var(--text-dark);
    }


    .btn-intro {
        color: white;
        text-decoration: none;
        padding: 12px 25px;
        border-radius: 25px;
        font-size: 14px;
        transition: transform 0.2s, background-color 0.2s;
        display: inline-block;
    }

    .btn-intro:hover {
        transform: scale(1.03);
    }

    .hero-image-wrapper {
        max-width: 100%;
        width: 100%;
        position: relative;
    }

    .hero-img {
        width: 100%;
        height: auto;
        border-radius: var(--radius-main);
        display: block;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }

    .section-title-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 18px;
    }

    .slider-arrows {
        display: flex;
        gap: 8px;
    }

    .arrow {
        width: 40px;
        height: 40px;
    }
    .arrow:hover {
        background-color: var(--accent-orange);
        color: white;
    }

    .products-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .product-card {
        width: 100%;
        max-width: 100%;
        padding: 15px;
    }

    .product-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        border-radius: calc(var(--radius-card) - 2px);
    }

    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(62, 50, 53, 0.06);
    }

    .badge-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
        width: 100%;
    }
    .product-badge {
        padding: 3px 8px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: bold;
    }

    .favorite-icon {
        color: var(--text-dark);
        cursor: pointer;
    }

    .product-info-block {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding-left: 0;
        margin-left: 0;
    }

    .product-description {
        padding-left: 0;
        margin-left: 0;
    }

     .product-img-box {
        height: auto;
        max-height: none;
    }

   .product-img-box img,
    .product-card img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .product-name {
        font-size: 12px;
        font-weight: 500;
        line-height: 1.3;
    }

    .product-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .product-price {
        font-weight: 700;
        font-size: 14px;
    }

    .products-grid .product-card button:hover,
    .products-grid .product-card .add-to-cart:hover,
    .btn-add-to-cart-widget:hover,
    button[onclick*="preventDefault"]:hover {
        background-color: #c77250;
        transform: scale(1.02);
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .btn-add-to-cart-widget:hover {
        background-color: #d97d56;
        color: #5b3020;
    }

    .btn-add-to-cart-widget {
        transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    }
        







   .btn-add-cart {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 300;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
        align-items: center;
        justify-content: center;
}
    

    .product-detail-box {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        padding: 10px;
        box-sizing: border-box;
        background-color: transparent;
    }

    .detail-gallery {
        display: flex;
        flex-direction: column-reverse;
        gap: 10px;
        width: 100%;
        flex-shrink: 0;
        align-items: center;
    }

    .gallery-thumbs {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 100%;
        flex-shrink: 0;
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        margin: 0;
        padding: 5px 0;
    }


/* Настройка полосы прокрутки */
    .gallery-thumbs::-webkit-scrollbar {
        height: 4px;
        width: auto;
    }

    .gallery-thumbs::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .gallery-thumbs::-webkit-scrollbar-thumb {
        background: #f2725b;
        border-radius: 10px;
    }

    .gallery-thumbs::-webkit-scrollbar-thumb:hover {
        background: #d65d48;
    }

    .thumb-item {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        border-radius: 6px;
        overflow: hidden;
        border: 2px solid transparent;
        cursor: pointer;
        background-color: #ffffff;
    }

    .thumb-item.active {
        border-color: #f2725b;
    }


    .thumb-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    
    .gallery-main-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        flex-shrink: 1;
        margin-left: 0;
        background-color: transparent;
        border-radius: 12px;
        box-shadow: none;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gallery-main-img img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: contain;
        border-radius: 12px;
    }

    .detail-info {
        width: 100%;
        flex: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .product-detail-box h1,
    .detail-title {
        font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
        color: #001a34;
        letter-spacing: 0;
    }

    .detail-price {
        font-size: 22px;
        font-weight: 700;
        color: var(--accent-orange);
        margin-bottom: 15px;
    }

    .detail-desc {
        font-size: 14px;
        line-height: 1.4;
        color: var(--text-muted);
        margin-bottom: 20px;
    }

    .btn-main-buy {
        background-color: var(--accent-orange);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 25px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        align-self: stretch;
        text-align: center;
        transition: background-color 0.2s;
    }

    .btn-main-buy:hover {
        background-color: #dd5f4a;
    }

    .search-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(62, 50, 53, 0.6);
        backdrop-filter: blur(5px);
        z-index: 10000;
        align-items: center;
        justify-content: center;
        padding: 15px;
        box-sizing: border-box;
    }

    .search-modal-content {
        background-color: white;
        padding: 24px;
        border-radius: var(--radius-main);
        width: 100%;
        max-width: 100%;
        position: relative;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        animation: fadeIn 0.3s ease;
        box-sizing: border-box;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .search-close {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-muted);
        transition: color 0.2s;
    }

    .search-close:hover {
        color: var(--accent-orange);
    }

    .search-modal-content h2 {
        font-family: 'Comfortaa', sans-serif;
        margin-bottom: 20px;
        font-size: 20px;
        color: var(--text-dark);
    }

    .search-input-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
        width: 100%;
    }


    #search-input {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 20px;
        border: 2px solid #e2dedb;
        border-radius: 25px;
        font-size: 15px;
        outline: none;
        transition: border-color 0.2s;
    }

    #search-input:focus {
        border-color: var(--accent-orange);
    }

    #search-submit-btn {
        background-color: var(--accent-brown);
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 25px;
        cursor: pointer;
        font-weight: 600;
        transition: background-color 0.2s;
        width: 100%;
        text-align: center;
    }

    #search-submit-btn:hover {
        background-color: var(--accent-orange);
    }

    .search-results {
        max-height: 250px;
        overflow-y: auto;
        width: 100%;
    }

    .search-item-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px;
        border-radius: var(--radius-card);
        text-decoration: none;
        margin-bottom: 8px;
        transition: background-color 0.2s;
        box-sizing: border-box;
        width: 100%;
    }


    .search-item-link:hover {
        background-color: var(--bg-main);
    }

    .search-item-link img {
        width: 40px;
        height: 40px;
        object-fit: contain;
        background: white;
        border-radius: 6px;
    }

    .search-no-results {
        color: var(--text-muted);
        font-size: 14px;
        text-align: center;
        padding: 15px 0;
    }

    .hero-banner {
        background: #f5eae4;
        border-radius: 16px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin: 15px auto;
    }

    .hero-text {
        max-width: 100%;
        width: 100%;
        flex-shrink: 1;
        text-align: center;
    }

    .android-placeholder {
        width: 100px;
        height: auto;
        border-radius: 12px;
        margin-bottom: 10px;
        display: block;
    }


    .hero-text h1 {
        font-size: 20px;
        margin-bottom: 15px;
        font-family: 'Comfortaa', sans-serif;
        color: #3e3235;
        text-align: center;
    }

    .btn-intro {
        background-color: #3e3431;
        color: white;
        text-decoration: none;
        padding: 12px 20px;
        border-radius: 25px;
        font-size: 14px;
        font-weight: bold;
        display: block;
        margin: 0 auto;
        text-align: center;
        width: fit-content;
        transition: background-color 0.2s;
    }

    .btn-intro:hover {
        background-color: #b4653e;
    }
            .banner-images-row {
        margin-top: 0;
        padding-top: 0;
    }

    .banner-img-item {
        width: 100%;
        overflow: hidden;
        border-radius: 12px;
        position: relative;
    }

    /* Вертикальная лента с картинками */
.slider-track {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slider-track img {
    width: 100%;
    height: 280px;      /* Высота картинки теперь строго 280px */
    object-fit: cover;
}




    .main-footer {
        background-color: #fcf1eb;
        color: #3e3235;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        padding: 30px 15px;
        border-top: 1px solid #f2ceca;
    }

    .footer-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
        gap: 30px;
    }

    .footer-brand {
        flex: none;
        min-width: 100%;
        text-align: center;
    }

    .footer-logo-img {
        max-width: 120px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .footer-column {
        flex: none;
        min-width: 100%;
        text-align: center;
    }

    .footer-column h4 {
        font-size: 16px;
        margin-top: 15px;
        margin-bottom: 15px;
        text-align: center;
    }

    .footer-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    .footer-column ul li {
        margin-bottom: 10px;
    }

    .footer-column ul li a {
        font-size: 14px;
        display: inline-block;
        padding: 5px 0;
    }

    .footer-contacts {
        flex: none;
        min-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }
    .footer-contacts .company-title {
        font-size: 16px;
        margin-bottom: 10px;
        text-align: center;
    }

    .footer-contacts a {
        font-size: 14px;
        display: inline-block;
        padding: 5px 0;
        text-align: center;
    }

    .footer-contacts .footer-phone {
        font-size: 16px;
    }

    .footer-contacts .footer-email {
        text-decoration: none;
    }

    .social-block {
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .social-block p {
        font-size: 14px;
        margin: 0 0 10px 0;
        text-align: center;
    }

    .product-info-block {
        flex: none;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .product-sku {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .product-price {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .product-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 15px;
        width: 100%;
    }

    .btn-add-to-cart {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 10px;
        width: 100%;
        text-align: center;
    }
    .product-sku {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .product-price {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .product-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 15px;
        width: 100%;
    }

    .btn-add-to-cart {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 10px;
        width: 100%;
        text-align: center;
    }

.btn-add-to-cart:hover {
    background-color: #f0c5b9;
}

    .btn-like {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .product-description {
        padding-top: 12px;
    }

    .features-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .features-list li {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 8px;
        padding-left: 15px;
    }


/* Добавляем стильный розовый дефис перед каждым пунктом */
    .features-list li::before {
        left: 0;
    }

    .product-specs-section {
        margin-top: 20px;
        padding-top: 15px;
    }

    .specs-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .specs-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .specs-row {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .spec-label {
        padding-right: 0;
    }

/* Эффект точек до значения */
    .spec-dots {
        top: 0;
        margin: 0 4px;
    }

    .spec-value {
        font-size: 13px;
        padding-left: 2px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .accordion-item {
        gap: 12px;
    }

    .accordion-header {
        max-width: 100%;
        padding: 15px 0;
        font-size: 15px;
    }


    .accordion-arrow {
        display: none;
    }

    .accordion-content {
        max-height: none;
    }

    .specs-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 15px;
    }

    .accordion-item.active .accordion-arrow {
        transform: rotate(180deg);
    }

    .spec-row { 
        display: flex; 
        align-items: flex-end; 
        margin-bottom: 10px; 
        font-size: 13px; 
    }

    .spec-label { 
        padding-right: 0; 
    }

    .spec-dots { 
        top: 0; 
        margin: 0 4px; 
    }

    .spec-value { 
        padding-left: 2px; 
    }

    .specs-grid { 
        grid-template-columns: 1fr; 
        gap: 0; 
    }

    .product-info-block .specs-grid {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 100%;
        padding-bottom: 15px;
    }


/* Дополнительное выравнивание строк, чтобы текст не наезжал друг на друга */
    .product-info-block .spec-row {
        display: flex;
        align-items: flex-end;
        margin-bottom: 10px;
        font-size: 13px;
    }

    .cart-slide-screen.active {
        right: 0;
    }

    .cart-item-row img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 8px;
    }

    #breadcrumbHomeBtn:hover {
        text-decoration: underline;
    }

    .back-home-link:hover, .header-menu a:hover {
        text-decoration: underline;
    }

    .cart-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        font-size: 10px;
        padding: 2px 4px;
        min-width: 16px;
        line-height: 12px;
    }


    .cart-badge.active {
        display: block;
    }

    .features-list {
        padding-left: 0;
        margin-left: 0;
    }

    .features-list li {
        margin-left: 0;
        padding-left: 0;
    }

    .open-btn {
        font-size: 15px;
        gap: 6px;
        padding: 8px 12px;
    }

/* 2. Сама выезжающая панель меню */
       /* 2. Сама выезжающая панель меню */
.side-menu {
    height: 100%;
    width: 0;                 /* Скрыта по умолчанию */
    position: fixed;
    z-index: 9999;            /* Всегда поверх остальных элементов */
    top: 0;
    left: 0;
    background-color: #fcfbfa; /* Приятный светлый фон */
    overflow-x: hidden;
    transition: 0.4s ease;    /* Плавное выдвижение */
    padding-top: 60px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.05);
}


    .side-menu.active {
        left: 0;
        display: block !important;
    }

    .menu-content {
        padding: 0 20px;
        min-width: auto;
    }

    .menu-content h2 {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .menu-content h3 {
        font-size: 11px;
        margin-top: 25px;
        margin-bottom: 12px;
    }

    .menu-content ul {
        padding: 0;
        margin: 0;
    }

    .menu-content ul li {
        margin-bottom: 12px;
    }

    .menu-content ul li a {
        font-size: 14px;
        display: inline-block;
    }

    .menu-content ul li a:hover,
    .menu-content ul li a.active {
        padding-left: 4px;
    }

    .menu-contacts {
        margin-top: 20px;
    }

    .menu-contacts p {
        margin: 8px 0;
    }

    .menu-contacts a {
        font-size: 14px;
    }

    .side-menu .close-btn {
        top: 15px;
        right: 15px;
    }


/* Эффекты для крестика */
    .side-menu .close-btn:hover {
        transform: rotate(90deg);
    }

    .header_row {
        justify-content: space-between;
        gap: 0;
    }

    .main-nav {
        margin-left: 0;
    }

    .header-controls {
        margin-left: 0;
    }

    .menu-content h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .menu-content h3 {
        font-size: 11px;
        margin-top: 15px;
        margin-bottom: 8px;
    }

    .menu-content ul li a {
        font-size: 13px;
    }

    .menu-contacts a {
        font-size: 13px;
    }

     .menu-content h3 {
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    .menu-content ul li a,
    .menu-contacts a {
        font-weight: 400;
    }

    .marketplace-page {
        padding: 40px 0;
        min-height: auto;
    }

    .page-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .page-subtitle {
        font-size: 13px;
        max-width: 100%;
        margin-bottom: 25px;
    }

    .marketplaces-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }


    .market-card {
        padding: 20px;
    }

    .market-card:hover {
        transform: translateY(-2px);
    }

    .market-logo {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .market-desc {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .market-btn {
        font-size: 14px;
    }


    .market-card:hover .market-btn {
        text-decoration: underline;
    }

    .favorites-container {
        margin-top: 20px;
        min-height: auto;
    }

    .favorites-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 15px;
    }

    .fav-card {
        padding: 12px;
    }

    .fav-card img {
        height: 120px;
    }

    .fav-card h4 {
        font-size: 13px;
        margin: 10px 0 6px 0;
    }

    .fav-price {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .remove-fav {
        top: 10px;
        right: 10px;
        font-size: 18px;
    }

    .empty-msg {
        font-size: 15px;
        padding: 30px 0;
    }

    .profile-container {
        margin-top: 20px;
        min-height: auto;
    }

    .profile-box {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 15px;
        margin-top: 15px;
    }

    .profile-menu {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 2px solid var(--bg-main);
        padding-bottom: 10px;
    }

    .profile-menu li {
        margin-bottom: 12px;
        display: inline-block;
        margin-right: 15px;
    }

    .profile-menu a {
        font-size: 14px;
    }

    .profile-menu a.active {
        font-weight: 700;
    }

    .profile-content {
        flex: none;
        width: 100%;
    }

    .form-group {
        margin-bottom: 20px;
        gap: 6px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input {
        padding: 10px;
        max-width: 100%;
        font-size: 14px;
    }

    .alert-success {
        font-size: 14px;
        margin-top: 10px;
    }

    .custom-fav-btn {
        padding: 12px 15px;
        font-size: 14px;
    }


    .custom-fav-btn:hover {
        background-color: var(--accent-orange);
        color: white;
        border-color: var(--accent-orange);
    }

    .header-controls a,
    .user-menu a,
    .header a {
        color: currentColor;
    }

    .header-controls a svg,
    .user-menu a svg,
    .header a svg {
        stroke: currentColor;
        fill: none;
    }

    .heart-btn {
        top: 10px;
        right: 10px;
        width: 10px;
        height: 10px;
    }

    .heart-svg {
        width: 10px;
        height: 10px;
    }


    .heart-btn.liked .heart-svg {
        fill: #c0bfba;
        stroke: #a7a6a2;
    }

    .page-title {
        text-align: center;
    }

    .slider-container {
        width: 100%;
        height: 180px;
        margin: 15px auto;
        border-radius: 12px;
    }

    .slider {
        height: 100%;
        gap: 12px;
    }

    .slider img {
        width: calc(100% - 12px);
        height: 100%;
        border-radius: 12px;
    }

    .prev-button {
        left: 10px;
    }

    .next-button {
        right: 10px;
    }


    .prev-button,
    .next-button {
        width: 36px;
        height: 36px;
        top: 50%;
        font-size: 16px;
    }

    .prev-button:hover,
    .next-button:hover {
        color: #005bff;
    }

    .product-description {
        margin-top: 15px;
    }

    .product-description summary {
        font-size: 14px;
    }


    .product-description summary::-webkit-details-marker {
        display: none;
    }

    .ozon-buy-widget {
        width: 100%;
        flex-shrink: 1;
    }

    .widget-card {
        border-radius: 16px;
        padding: 15px;
    }

    .widget-price-row {
        margin-bottom: 8px;
    }

    .main-price {
        font-size: 24px;
    }

    .points-badge {
        padding: 3px 6px;
        font-size: 11px;
    }

    .widget-old-price {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .discount-badge {
        padding: 2px 4px;
        font-size: 11px;
        margin-left: 4px;
    }

    .btn-ozon-cart {
        padding: 12px;
        font-size: 15px;
        margin-bottom: 10px;
    }


    .btn-ozon-click:hover {
        background-color: #0056b3;
        border-color: #0056b3;
        color: #ffffff;
    }

    .btn-ozon-click {
        padding: 12px 20px;
        font-size: 15px;
    }

    .stock-info {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .widget-link {
        font-size: 12px;
    }

    .delivery-header {
        margin-bottom: 8px;
    }


    .delivery-header h3 {
        font-size: 14px;
    }

    .city-select {
        font-size: 13px;
    }

    .delivery-item {
        gap: 10px;
        margin-bottom: 12px;
        font-size: 13px;
    }

    .delivery-date {
        font-size: 12px;
        margin-top: 1px;
    }

    .ozon-brand-delivery {
        padding: 8px 12px;
        border-radius: 10px;
        gap: 8px;
        font-size: 12px;
        margin-top: 12px;
    }

    .ozon-mini-logo {
        height: 12px;
    }




    .product-header-top {
        margin-bottom: 15px;
        padding: 0 5px;
    }

    .product-price-large {
        font-size: 24px;
        gap: 8px;
    }

    .product-price-large .old-price {
        font-size: 14px;
    }

    .product-price-large .discount {
        font-size: 11px;
        padding: 2px 4px;
        border-radius: 4px;
    }

    main.container,
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }


    .product-detail-box {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .ozon-modal-banner h2 {
        font-size: 22px;
        line-height: 1.3;
        letter-spacing: 0;
    }

    .banner-text h3 {
        font-size: 15px;
        line-height: 1.3;
        margin: 4px 0 0 0;
    }




    .banner-text h3 {
        font-size: 16px;
        line-height: 1.3;
        letter-spacing: 0;
        margin: 4px 0 0 0;
    }

    .ozon-modal-overlay {
        backdrop-filter: blur(2px);
    }

    .ozon-modal-container {
        width: 100%;
        max-width: 100%;
        height: 100%;
        border-radius: 0;
    }


    .ozon-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .ozon-modal-banner {
        padding: 25px 20px;
    }


    .ozon-modal-banner h2 {
        font-size: 22px;
        letter-spacing: 0;
    }

    .ozon-modal-banner h3 {
        font-size: 15px;
    }

    .ozon-modal-content {
        padding: 15px;
    }

    .ozon-steps-list li {
        gap: 12px;
        margin-bottom: 18px;
    }

    .step-num {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .step-text strong {
        font-size: 14px;
    }

    .step-text p {
        font-size: 12px;
    }

    .ozon-modal-footer {
        padding-top: 15px;
    }

    .ozon-modal-footer p {
        font-size: 11px;
        margin-bottom: 15px;
    }

    .ozon-btn-understand {
        padding: 12px;
        font-size: 15px;
    }

    .footer-subtext {
        margin-top: 12px;
    }


    #quantityCounter {
        height: 44px;
        margin-bottom: 10px;
    }

    .counter-btn {
        width: 44px;
        font-size: 18px;
    }


    .counter-value {
        font-size: 15px;
    }

    .thumb-video-btn {
        margin-top: 6px;
        width: 50px;
    }

    .video-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .thumb-video-btn span {
        font-size: 10px;
    }





    #cartModel header,
    .cart-slide-screen header {
        max-width: 100%;
        padding: 10px 15px;
    }

    #cartModel header nav,
    .cart-slide-screen header nav {
        display: none;
    }

    #cartModel header .header-icons,
    .cart-slide-screen header div:last-child {
        gap: 12px;
    }
    .fav-btn {
        top: 10px;
        right: 10px;
    }

    .fav-btn svg {
        width: 22px;
        height: 22px;
    }

    .main-contacts-block {
        max-width: 100%;
        margin: 20px 0;
    }

    .contacts-heading {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .contacts-subtext {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .contacts-links {
        gap: 10px;
        margin-bottom: 20px;
    }

    .contact-link-item {
        font-size: 15px;
        gap: 8px;
    }


    .socials-title {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .socials-buttons {
        gap: 8px;
    }

    .btn-social {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .contacts-hero-section {
        padding: 30px 15px;
        margin: 15px 0;
    }


    .contacts-hero-container {
        max-width: 100%;
        flex-direction: column;
        gap: 24px;
    }

    .contacts-hero-left {
        max-width: 100%;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.4;
    }

    .contacts-hero-right {
        flex: none;
        width: 100%;
        padding: 15px;
    }

    .right-column-title {
        font-size: 16px;
        margin-bottom: 15px;
    }


    .hero-links {
        gap: 12px;
        margin-bottom: 20px;
    }

    .hero-link-item {
        font-size: 15px;
        gap: 8px;
    }

    .hero-social-title {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .hero-social-buttons {
        gap: 8px;
    }

    .hero-btn-social {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .hero-title {
        font-size: 22px;
        letter-spacing: 0;
        margin-bottom: 12px;
    }

    .right-column-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .hero-social-title {
        margin-bottom: 8px;
    }

    .hero-link-item {
        font-size: 14px;
    }





    .breadcrumb-item {
        font-size: 12px;
    }

    .breadcrumb-separator {
        font-size: 12px;
        margin: 0 4px;
    }

    .recommended-title {
        font-size: 20px;
        letter-spacing: 0;
        margin-bottom: 15px;
        text-align: center;
    }



    .page-title {
        font-size: 20px;
        letter-spacing: 0;
        margin-top: 15px;
        margin-bottom: 15px;
        text-align: center;
    }

    .product-title {
        font-size: 18px;
        line-height: 1.3;
        letter-spacing: 0;
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .product-header top h1,
    .product-header top h2,
    h1.product-title,
    .product-title {
        font-size: 18px !important;
    }



    .ozon-buy-widget {
        gap: 12px;
        margin-bottom: 10px;
    }

    .widget-price-row {
        gap: 10px;
    }

    .main-price {
        font-size: 22px;
    }

    .points-badge {
        padding: 2px 6px;
        font-size: 11px;
    }

    .product-buttons-row {
        gap: 8px;
        margin-top: 10px;
    }


    .btn-favorite-widget {
        height: 44px;
    }

    .ozon-delivery-badge {
        gap: 6px;
        font-size: 12px !important;
        padding: 8px 12px !important;
        margin-top: 0;
        margin-bottom: 15px;
    }

    .ozon-mini-logo {
        height: 12px;
    }

    .product-columns-row {
        flex-direction: column;
        gap: 20px;
        margin-top: 15px;
    }

    .product-price-row-clean {
        gap: 10px;
        justify-content: flex-start !important;
    }


    .product-sidebar-data {
        max-width: 100%;
        gap: 20px;
    }

    .product-specs-bottom-clean h3,
    .specs-title {
        font-size: 16px !important;
        letter-spacing: 0;
        margin-bottom: 12px;
    }

    .product-pure-description,
    .product-description-text-clean,
    .features-list {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .product-specs-bottom-clean,
    .specs-column,
    .spec-row {
        font-size: 13px !important;
    }

    .spec-label, .spec-name {
        font-weight: 400 !important;
    }

    .spec-value {
        font-size: 13px !important;
    }

    .breadcrumbs {
        font-size: 12px !important;
        padding: 10px 0 0 0;
        margin-bottom: 10px;
    }

    .breadcrumbs span {
        margin: 0 4px;
    }





    .widget-price-row {
        gap: 10px;
    }

    .widget-old-price {
        font-size: 13px !important;
    }

    .auth-container {
        max-width: 100%;
        margin: 20px auto;
        padding: 0 15px;
    }

    .auth-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .auth-form {
        gap: 15px;
    }


    .form-group label {
        font-size: 13px;
    }

    .form-group input {
        height: 44px;
        padding: 0 15px;
        font-size: 14px;
        border-radius: 8px;
    }

    .form-actions-row {
        gap: 15px;
        margin-top: 20px;
    }

    .btn-auth-submit {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 25px;
        width: 100%;
        text-align: center;
    }

    .auth-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .auth-link-item {
        font-size: 13px;
    }

    .form-actions-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
}







@media (max-width: 425px) {
  
  /* ==========================================================================
     АДАПТИВ КАТАЛОГОВ (КУХНЯ И ВАННАЯ) — ЭКРАН 425px
     ========================================================================== */

  /* 1. Хлебные крошки и Заголовок страницы */
  .breadcrumbs, 
  .page-title, 
  main h1 {
    padding: 10px 15px !important;
    margin: 0 !important;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  }

  .breadcrumbs {
    font-size: 13px !important;
    color: #888888 !important;
  }

  /* Мягкий и супер-жирный заголовок на телефоне (финальная версия, три дубля были объединены) */
  .page-title, main h1 {
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #1a1a1a !important;
  }

  /* 2. Контейнер для карточек (выстраивает их в один вертикальный ряд) */
  .products-grid, 
  .products-row,
  main > div:has(.product-card) {
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;    
    gap: 30px !important; /* Отступ между карточками в высоту */
    width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  /* 3. Карточка товара (СОХРАНЯЕМ КРУПНЫЙ ПОЛНОРАЗМЕРНЫЙ ВИД) */
  .product-card {
    width: 100% !important;       /* Карточка растягивается на всю ширину экрана */
    max-width: 100% !important;   /* Убираем любые ограничения по ширине */
    min-width: unset !important;   /* Сбрасываем десктопные стили */
    box-sizing: border-box !important;
    margin: 0 auto !important;
    padding: 15px !important;
    background: #ffffff !important;
    border-radius: 16px !important; /* Мягкие скругленные углы у самой карточки */
  }

  /* 4. Картинка внутри карточки товара */
  .product-card img {
    width: 100% !important;
    height: auto !important;       /* Высота пропорциональна картинке */
    display: block !important;
    margin: 0 auto 15px auto !important;
  }

  /* 5. НАЗВАНИЯ ТОВАРОВ (финальная версия — были 3 конфликтующих дубля, объединили в один) */
  .product-card h3, 
  .product-card p, 
  .product-card .product-title,
  .product-card [class*="title"] {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.35 !important;
    color: #1a1a1a !important;
    margin-bottom: 20px !important;
    white-space: normal !important; /* Разрешаем правильный перенос целых слов */
    word-break: keep-all !important; /* Запрещаем перенос по одной букве */
    text-align: left !important;
  }

  /* 6. Нижняя часть карточки (Цена и Кнопка в один ряд) */
  .product-card .price-row, 
  .product-card .product-footer,
  .product-card [class*="footer"] {
    display: flex !important;
    justify-content: space-between !important; /* Цена слева, кнопка справа */
    align-items: center !important;
    width: 100% !important;
    margin-top: 15px !important;
  }

  /* Шрифт цены */
  .product-card .price,
  .product-card [class*="price"] {
    font-family: system-ui, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
  }

  /* ИСПРАВЛЕНИЕ КНОПКИ "В КОРЗИНУ" (БЕЗ ЖМЫХАНИЯ) */
  .product-card .btn-add, 
  .product-card button,
  .product-card [class*="btn"] {
    width: auto !important;         /* Кнопка сама подстраивается под ширину текста */
    height: auto !important;        /* Высота подстраивается под внутренние отступы */
    padding: 10px 20px !important;  /* Аккуратные внутренние отступы */
    border-radius: 20px !important; /* Мягкая овальная форма кнопки */
    
    font-family: system-ui, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important; /* Запрещаем тексту переноситься или сжиматься */
  }
}

/* ==========================================================================
   БЛОК 2 — было: mobile425.css (диапазон 425–768px: шапка-слайдер, галерея, корзина)
   ========================================================================== */

@media (min-width: 425px) and (max-width: 768px){
  /* Скрываем десктопное меню */
  .main-nav, nav {
    display: none !important;
  }

  /* 1. Превращаем строку хедера в прокручиваемый слайдер */
  .header-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important; /* Выстраиваем элементы по порядку слева направо */
    align-items: center !important;
    width: 100% !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
    
    /* Магия скролла: разрешаем крутить шапку пальцем */
    overflow-x: auto !important; 
    white-space: nowrap !important; /* Запрещаем элементам переноситься на новую строку */
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important; /* Плавный скролл на iPhone */
    gap: 20px !important; /* Удобный отступ между прокручиваемыми блоками */
  }
   /* Скрываем некрасивую системную полосу прокрутки снизу хедера */
  .header-row::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* 2. Защищаем элементы хедера от сжатия при прокрутке */
  #open-btn, 
  .open-menu,
  .logo,
  .header-controls {
    flex: 0 0 auto !important; /* Жестко запрещаем браузеру уменьшать эти блоки */
    margin: 0 !important;
  }


  /* Логотип строго по центру */
  .logo {
    margin: 0 auto !important;
  }

   /* 3. Фиксируем размеры логотипа */
  .logo img {
    height: 35px !important;
    width: auto !important;
    display: block !important;
  }

   /* 4. Блок иконок справа */
  .header-controls {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important; /* Просвет между лупой, сердечком и корзиной */
    padding-right: 10px !important; /* Безопасный отступ для красного маркера */
  }

   /* Защищаем сами иконки внутри блока от сплющивания */
  .header-controls a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    flex-shrink: 0 !important; 
    text-decoration: none !important;
  }

  
/* Этот блок стилей будет работать на мобильных экранах */

    .gallery-main-img {
        display: flex !important;      /* Выстраиваем все большие фото в одну горизонтальную линию */
        overflow-x: auto !important;   /* Разрешаем горизонтальную прокрутку пальцем */
        scroll-snap-type: x mandatory; /* Включаем авто-магнитирование слайдов при свайпе */
        scroll-behavior: smooth;       /* Делаем прокрутку плавной */
        width: 100%;
        max-height: 400px;             /* Задай нужную высоту под твой дизайн */
    }

    .gallery-main-img img {
        width: 100% !important;        /* Каждое фото занимает ровно 100% ширины экрана телефона */
        flex-shrink: 0;                /* Запрещаем картинкам сжиматься */
        scroll-snap-align: start;      /* Каждая картинка ровно выравнивается по левому краю при остановке */
        object-fit: contain;           /* Защита от искажения пропорций фото */
    }

    /* Прячем горизонтальный скроллбар снизу, чтобы интерфейс был чистым */
    .gallery-main-img::-webkit-scrollbar {
        display: none;
    }


    

/* ========================================================================== */
/*   ПРОФЕССИОНАЛЬНАЯ АДАПТАЦИЯ КОРЗИНЫ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ (425px)       */
/* ========================================================================== */

    /* 1. Перестраиваем главный контейнер модалки в одну вертикальную колонку */
    #cartModal .cart-slide-screen,
    #cartModal > div:last-child {
        display: flex !important;
        flex-direction: column !important; /* Товары сверху, чекдаут снизу */
        gap: 16px !important;
        padding: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. Растягиваем список товаров на всю ширину экрана */
    .cart-items-list {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important; /* Отменяем десктопный flex: 2 */
        padding-right: 0 !important;
    }

    /* Обертка для вставленных из JS карточек */
    .cart-items-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* 3. БАГ-ФИКС: Картинки товаров больше не сплющиваются */
    .cart-items-wrapper img {
        width: 75px !important;
        height: 75px !important;
        object-fit: contain !important; /* Сохраняет реальные пропорции полки */
        flex-shrink: 0 !important;      /* Запрещает флексу сжимать фото */
    }

    /* 4. Блок стоимости («Общая стоимость») встает строго вниз на всю ширину */
    #cartModal .cart-items-list + div,
    #cartModal div[style*="background: rgb(255, 255, 255); border-radius: 12px;"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important; /* Отменяем десктопный flex: 1 */
        box-sizing: border-box !important;
        margin-top: 10px !important;
        padding: 16px !important; /* Уменьшаем внутренние отступы */
    }

    /* 5. Кнопка «Оформить заказ» */
    .btn-red-checkout {
        width: 100% !important;
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 6. ФИКС СИНЕЙ ПОЛОСЫ: Убираем контуры, тени и подчеркивания */
    .btn-red-checkout,
    #cartModal a[href*="checkout.html"],
    #cartModal button {
        outline: none !important;
        text-decoration: none !important;
        box-shadow: none !important; 
        -webkit-tap-highlight-color: transparent !important; /* Убирает синюю вспышку при клике на смартфонах */
    }


/* Настройка текста товаров в корзине */
.cart-items-wrapper p,
.cart-items-wrapper span,
.cart-items-list div {
    /* Делаем жирнее и увереннее */
    font-weight: 600 !important; 
    
    /* Делаем мягче для глаз (благородный графитовый вместо едкого черного) */
    color: #2D2D2F !important; 
    
    /* Делаем четче за счет межстрочного интервала и сглаживания */
    line-height: 1.4 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Отдельно для цены — сделаем её еще чуть плотнее, чтобы она выделялась */
.cart-items-wrapper span[style*="P"],
.cart-items-wrapper span:last-child {
    font-weight: 700 !important;
    color: #111112 !important;
    font-size: 15px !important;
}


/* 1. Разрешаем самой модалке корзины прокручиваться по вертикали */
#cartModal {
    max-height: 100vh !important;
    overflow-y: auto !important; /* Включает скролл, если кнопка не влезает */
    -webkit-overflow-scrolling: touch !important; /* Плавный скролл на айфонах */
}

/* 2. Ограничиваем общую высоту контента внутри, чтобы кнопка не улетала */
#cartModal .cart-slide-screen,
#cartModal > div:last-child {
    height: auto !important; /* Сбрасываем жесткую высоту */
    max-height: none !important;
    padding-bottom: 30px !important; /* Делаем запасной отступ снизу, чтобы кнопка не прилипала к краю */
}

/* 3. Ограничиваем высоту списка товаров, если их стало много */
.cart-items-list {
    max-height: 50vh !important; /* Список товаров займет максимум половину экрана */
    overflow-y: auto !important;  /* Товары будут скроллиться отдельно */
}
   /* Уменьшаем высоту слайдера, чтобы пропорции картинки Ozon оставались правильными */
    .slider-container, 
    [class*="slider_container"] {
        height: 180px !important; 
    }
    
    /* Делаем отступы для стрелок чуть меньше, чтобы они не прижимались к краям */
    .prev-button { left: 10px !important; }
    .next-button { right: 10px !important; }


    
  }



 
 
/* ==========================================================================
   БЛОК 3 — было: mobile425-un.css (узкий диапазон 425–555px: карточки каталога)
   ========================================================================== */

@media (min-width: 425px) and (max-width: 555px) {
  /* Хлебные крошки и Заголовок страницы */
  .breadcrumbs, .page-title, main h1 {
    padding: 10px 15px !important;
    margin: 0 !important;
  }

  /* Выстраиваем карточки в одну колонку */
  .products-grid, .products-row, main > div:has(.product-card) {
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;    
    gap: 30px !important;
    width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  /* Сама полноразмерная карточка товара */
  .product-card {
    position: relative !important; /* Критично для позиционирования лайка в углу */
    width: 100% !important;       
    max-width: 100% !important;   
    min-width: unset !important;   
    box-sizing: border-box !important;
    margin: 0 auto !important;
    padding: 15px !important;
    background: #ffffff !important;
    border-radius: 16px !important; 
  }

  /* Картинка внутри карточки */
  .product-card img {
    width: 100% !important;
    height: auto !important;       
    display: block !important;
    margin: 0 auto 15px auto !important;
  }

  /* Мягкий и жирный шрифт для названий товаров */
  .product-card h3, .product-card p, .product-card .product-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 14px !important; 
    font-weight: 700 !important; /* Четкая плотная жирность */
    line-height: 1.4 !important;
    margin-bottom: 20px !important; 
    white-space: normal !important; 
    word-break: keep-all !important; 
    text-align: left !important;
  }

  /* Нижняя строка (Цена и Кнопка) */
  .product-card .price-row, .product-card .product-footer {
    display: flex !important;
    justify-content: space-between !important; 
    align-items: center !important;
    width: 100% !important;
    gap: 15px !important;
  }

  .product-card .price {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 20px !important; 
    font-weight: 700 !important;
  }

  /* КНОПКА ТЕКСТОМ "В КОРЗИНУ" (ЦВЕТА ИЗ STYLE.CSS — МЫ ИХ НЕ ТРОГАЕМ) */
  .product-card .btn-add, 
  .product-card button {
    flex: 1 !important;             /* Растягиваем прямоугольную кнопку */
    width: auto !important;
    height: 42px !important;        
    padding: 0 20px !important;
    border-radius: 8px !important;   /* Прямоугольная аккуратная форма */
    
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;  
    
    /* Проявляем оригинальный текст, убирая скрытие */
    font-size: 14px !important;
    font-family: system-ui, sans-serif !important;
    font-weight: 600 !important;
    color: #ffffff !important; 
  }

  /* Стираем псевдоэлементы-плюсики, чтобы они не накладывались на текст */
  .product-card .btn-add::before, 
  .product-card button::before {
    display: none !important;
    content: "" !important;
  }

  /* СЕРДЕЧКО ЛАЙКА СТРОГО В ПРАВОМ ВЕРХНЕМ УГЛУ КАРТИНКИ */
  .product-card .wishlist-btn,
  .product-card .like-btn,
  .product-card [class*="heart"] {
    position: absolute !important;
    top: 15px !important;        
    right: 15px !important;      
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    background: transparent !important; /* Убираем лишние серые/оранжевые фоновые круги */
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
  }

  .product-card .wishlist-btn img,
  .product-card [class*="heart"] img,
  .product-card .wishlist-btn svg {
    width: 24px !important;      
    height: 24px !important;
    display: block !important;
    position: static !important;  
  }
}

/* ==========================================================================
   БЛОК 4 — было: mobile768-un.css (сетка каталога на разных диапазонах + мобильное меню)
   ========================================================================== */

/* 1. Стили для ПК (все, что до 1500px) */
@media (max-width: 1500px) {
    .products-grid, .products-row, main > div:has(.product-card) {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 500px;
        gap: 30px;
    }
}



/* --- 2. СТИЛИ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ (Меньше 850px) --- */
@media (max-width: 1050px) {
    
    /* Скрываем стандартное меню из шапки header */
    
    header .main_nav, 
    .main_nav, .main_nav ul{
        display: none !important;
    }

    header.main-header .container .row nav.main_nav {
        display: none !important;
    }
    /* Показываем новое меню под слайдером */
     .mobile_center_nav {
        display: block !important;
        margin: 30px auto;
        width: 100%;
        max-width: 400px;
    }

    .header-controls {
        display: flex !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    /* Делаем список flex-контейнером, чтобы управлять строками */
    .mobile_center_nav ul {
        display: flex;
        flex-wrap: wrap;       /* Разрешаем перенос ссылок на новую строку */
        justify-content: center; /* Центрируем по горизонтали */
        gap: 20px 30px;        /* Расстояние: 20px между строками, 30px между словами */
        padding: 0;
        margin: 0;
        list-style: none;      /* Убираем маркеры списков (точки) */
    }

    /* Стилизуем сами ссылки, как в примере "Всё на местах" */
    .mobile_center_nav ul li a {
        text-transform: uppercase; /* Все буквы заглавные */
        text-decoration: none;     /* Убираем нижнее подчеркивание */
        color: #333333;            /* Твой цвет текста */
        font-weight: 500;
        font-size: 16px;
    }
    /* 1. Сбрасываем жесткую высоту строк сетки на планшетах */
    div.products.grid, 
    div.products-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 колонки */
        grid-template-rows: max-content !important;       /* Строка тянется по самой высокой карточке */
        grid-auto-rows: max-content !important;           /* Для всех последующих строк */
        gap: 20px !important;                             /* Чуть уменьшаем отступы */
    }

    /* 2. Делаем карточки резиновыми по высоте */
    .products.grid .product-card,
    .products-grid .product-card,
    a.product-card {
        height: auto !important;         /* Убираем 100% или фиксированную высоту */
        min-height: 480px !important;    /* Минимальный порог, чтобы все элементы дышали */
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding-bottom: 15px !important; /* Отступ снизу для кнопки */
    }

    /* 3. Корректируем футер карточки, чтобы кнопка и цена не наезжали друг на друга */
    .product-footer {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: auto !important;     /* Принудительно толкает цену и кнопку вниз карточки */
        width: 100% !important;
    }
}






/* 2. Стили для Планшетов (от 426px до 852px) */
@media (max-width: 852px) and (min-width: 555px) {
    .products-grid, .products-row, main > div:has(.product-card) {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 500px;
        gap: 30px; /* На планшетах можно сделать отступ чуть меньше */
        
    }
}


    

@media (min-width: 426px) and (max-width: 768px){
    .products-grid, 
    .products-row, 
    main > div:has(.product-card) {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Оставляем 2 колонки */
        
        /* ИСПРАВЛЕНИЕ ТУТ: */
        grid-template-rows: auto;               /* Высота строки зависит от контента */
    }

    .product-card {
        display: flex;
        flex-direction: column;                 /* Элементы внутри карточки идут сверху вниз */
        justify-content: space-between;         /* Кнопка всегда будет прижата к самому низу */
        height: 100%;                           /* Растягиваем карточку на всю высоту строки */
        padding-bottom: 15px;                   /* Внутренний отступ снизу, чтобы кнопка не липла к краю */
    }


.product-card .btn-add, .product-card button {
        font-family: system-ui, sans-serif !important;
        font-weight: 600 !important;
        color: #ffffff !important;
    }
    
    .product-card .wishlist_btn, .product-card .like_btn, .product-card [class*="heart"] {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    /* И сюда же добавляешь код для меню, которое прячется под баннер */
    .desktop-menu {
        display: none;
    }
    .mobile-center-menu {
        display: flex;
    }




    /* Уменьшаем высоту слайдера, чтобы пропорции картинки Ozon оставались правильными */
    .slider-container, 
    [class*="slider_container"] {
        height: 180px !important; 
    }
    
    /* Делаем отступы для стрелок чуть меньше, чтобы они не прижимались к краям */
    .prev-button { left: 10px !important; }
    .next-button { right: 10px !important; }


    


  /* Заголовок страницы */
  .page-title, main h1 {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    padding: 10px 15px !important;
  }


  /* Карточка во всю ширину */
  .product-card {
    position: relative !important;
    width: 100% !important;       
    max-width: 100% !important;   
    min-width: unset !important;   
    box-sizing: border-box !important;
    margin: 0 auto !important;
    padding: 20px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
  }

  .product-card img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 15px auto !important;
  }

  /* Названия товаров */
  .product-card h3, .product-card p, .product-card .product-title {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 15px !important;  
    font-weight: 700 !important;  
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
    text-align: left !important;
  }

  /* Цена и кнопка */
  .product-card .price-row, .product-card .product-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 15px !important;
  }

  .product-card .price {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
  }

  /* Кнопка с текстом под 768px */
  .product-card .btn-add, .product-card button {
    flex: 1 !important;
    width: auto !important;
    height: 44px !important;
    padding: 0 20px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    font-family: system-ui, sans-serif !important;
    font-weight: 600 !important;
    color: #ffffff !important;
  }

  .product-card .btn-add::before, .product-card button::before {
    display: none !important;
  }

  /* Сердечко в углу на планшете */
  .product-card .wishlist-btn, .product-card .like-btn, .product-card [class*="heart"] {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 32px !important;
    height: 32px !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
  }

}


/* Для мобильных телефонов (экран меньше 590px) */
@media (min-width: 426px) and (max-width: 500px) {
    .products-grid, 
    .products-row, 
    main > div:has(.product-card) {
        grid-template-columns: repeat(1, 1fr) ; /* Строго одна колонка */
        grid-template-rows: 500px;             /* Высота подстроится под контент */
        gap: 30px;                                       /* Отступ между карточками по вертикали */
    }

    .product-card {
        width: 100%; /* Карточка займет всю ширину экрана */
    }
}

/* --- 1. СТИЛИ ДЛЯ ОБЫЧНОЙ ВЕРСИИ (ПК) --- */
/* По умолчанию мобильное меню под слайдером полностью скрыто */
.mobile_center_nav {
    display: none;
}



