/* ==========================================================================
   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: 'Comfortaa', '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: 'Comfortaa', 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;
        gap: 10px;
        max-height: none;
    }

    .banner-img-item {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        min-width: 0;
        height: auto;
        aspect-ratio: 1 / 1;
        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 {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.slider-track img {
    width: 100%;
    height: 280px;      /* Высота картинки теперь строго 280px */
    object-fit: cover;
}




    .main-footer {
        background-color: #f4ece1;
        color: var(--text-dark);
        font-family: 'Comfortaa', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        padding: 44px 20px 0;
    }

    .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: 34px;
        padding-bottom: 32px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-tagline {
        max-width: 280px;
        margin: 0 auto;
    }

    .footer-brand-socials {
        justify-content: center;
    }

    .footer-column {
        min-width: 100%;
        text-align: center;
    }

    .footer-column h4,
    .footer-contacts h4 {
        font-size: 13px;
        margin-top: 0;
        margin-bottom: 16px;
        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: 3px 0;
    }

    .footer-contacts {
        min-width: 100%;
        align-items: center;
        text-align: center;
    }

    .footer-contacts a {
        font-size: 14px;
        display: inline-block;
        padding: 3px 0;
        text-align: center;
    }

    .footer-contacts .footer-phone {
        font-size: 17px;
    }

    .footer-payments {
        justify-content: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 18px 0 24px;
    }

    .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;
    }

    #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: auto;
        margin: 15px auto;
        border-radius: 12px;
    }

    .slider {
        height: 100%;
    }

    .slider img {
        width: 100%;
        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,
    .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;
    }

    /* ---------- Личный кабинет: сайдбар сверху, контент снизу ---------- */
    .pc-box {
        max-width: 100%;
    }

    .pc-layout {
        flex-direction: column;
        min-height: 0;
    }

    .pc-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ece7da;
        padding: 22px 20px;
        gap: 18px;
    }

    .pc-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .pc-nav-item {
        width: auto;
        padding: 9px 14px;
    }

    .pc-logout-btn {
        margin-top: 4px;
        align-self: flex-start;
    }

    .pc-content {
        padding: 26px 20px;
    }

    .pc-viewed-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 14px;
    }


    .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
     ========================================================================== */
  .pc-sidebar {
    padding: 16px 14px;
    gap: 14px;
  }

  .pc-user-card {
    gap: 10px;
  }

  .pc-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 17px;
  }

  .pc-user-name {
    font-size: 14px;
  }

  .pc-user-phone {
    font-size: 12px;
  }

  .pc-nav-item {
    font-size: 13px;
    padding: 8px 12px;
  }

  .pc-nav-item svg {
    width: 16px;
    height: 16px;
  }

  .pc-content {
    padding: 20px 14px;
  }

  .pc-tab-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .pc-save-btn {
    width: 100%;
  }

  .pc-order-card {
    padding: 14px;
  }

  .pc-order-thumb {
    width: 44px;
    height: 44px;
  }

  .pc-viewed-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* ==========================================================================
     АДАПТИВ КАТАЛОГОВ (КУХНЯ И ВАННАЯ) — ЭКРАН 425px
     ========================================================================== */

  /* 1. Хлебные крошки и Заголовок страницы */
  .breadcrumbs, 
  .page-title, 
  main h1 {
    padding: 10px 15px !important;
    margin: 0 !important;
    font-family: 'Comfortaa', '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: 'Comfortaa', '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;
    }


    

/* ========================================================================== */
/*   КОРЗИНА: см. общий блок стилей ниже (секция "КОРЗИНА — МОБИЛЬНАЯ АДАПТАЦИЯ") */
/* ========================================================================== */

}





 
 
/* ==========================================================================
   БЛОК 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: 'Comfortaa', '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: 'Comfortaa', '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;
    background-color: var(--accent-orange) !important; /* ИСПРАВЛЕНИЕ: без фона белый текст/плюс был не виден на белой карточке */
  }

  /* Стираем псевдоэлементы-плюсики, чтобы они не накладывались на текст */
  .product-card .btn-add::before, 
  .product-card button::before {
    display: none !important;
    content: "" !important;
  }

  /* Кнопка "+" (btn-add-cart) выглядит как на ПК: просто черный плюсик без фона и рамки */
  .product-card .btn-add-cart {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: var(--text-dark) !important;
    font-size: 26px !important;
    font-weight: 300 !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;
        background-color: var(--accent-orange) !important; /* ИСПРАВЛЕНИЕ: белый текст был невидим без фона */
    }

    /* Кнопка "+" (btn-add-cart) выглядит как на ПК: просто черный плюсик без фона и рамки */
    .product-card .btn-add-cart {
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: none !important;
        color: var(--text-dark) !important;
        font-weight: 300 !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;
    }




    /* Пропорции баннера теперь задаёт aspect-ratio в style.css — здесь ничего не переопределяем */
    .prev-button { left: 10px !important; }
    .next-button { right: 10px !important; }


    


  /* Заголовок страницы */
  .page-title, main h1 {
    font-family: 'Comfortaa', '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: 'Comfortaa', '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: 'Comfortaa', '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;
    background-color: var(--accent-orange) !important; /* ИСПРАВЛЕНИЕ: белый текст был невидим без фона */
  }

  .product-card .btn-add::before, .product-card button::before {
    display: none !important;
  }

  /* Кнопка "+" (btn-add-cart) выглядит как на ПК: просто черный плюсик без фона и рамки */
  .product-card .btn-add-cart {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: var(--text-dark) !important;
    font-weight: 300 !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;
}




/* ==========================================================================
   ФИНАЛЬНАЯ ЧИСТКА АДАПТИВА ГЛАВНОЙ СТРАНИЦЫ + КАТАЛОГОВ (kychna/vanna)
   (карточки товаров + блоки "Эстетика на вашей кухне / Уют в деталях /
   Скандинавский стиль" и "Современный дизайн / Качественный металл")

   Версия 2. Раньше правила ниже стояли в конце файла и рассчитывали на то,
   что !important + порядок в файле их вытянет наверх каскада — но у части
   старых правил (из объединённых mobile-файлов) selector специфичнее
   ("div.products-grid", "a.product-card"), чем просто ".products-grid",
   и specificity у CSS всегда важнее порядка в файле. Из-за этого старое
   "div.products-grid { grid-template-columns: repeat(2,1fr) !important }"
   на @media (max-width: 1050px) всё равно продолжало побеждать на 425px.
   Теперь селекторы здесь искусственно "удвоены" (.products-grid.products-grid),
   это поднимает их специфичность выше любого одиночного класса+тега и
   гарантированно перебивает все старые правила независимо от их порядка.
   ========================================================================== */

/* ---------- Телефоны (до 680px) ---------- */
@media (max-width: 680px) {

    .products-grid.products-grid,
    .products-grid-centered.products-grid-centered {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: unset !important;
        gap: 32px !important;
        margin-bottom: 60px !important;
        max-width: 100% !important;
    }

    .product-card.product-card {
        width: 100% !important;
        height: auto !important;
        min-height: unset !important;
    }

    /* Возвращаем карточкам единое соотношение сторон — раньше здесь стояло
       object-fit: contain и height: auto, из-за чего товары с "высокими"
       исходными фото выглядели крупнее и вразнобой с остальными */
    .product-img-box.product-img-box {
        aspect-ratio: 3 / 4 !important;
        height: auto !important;
        max-height: none !important;
    }
    .product-img-box img,
    .product-image.product-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* "Эстетика на вашей кухне / Уют в деталях / Скандинавский стиль" — в один столбец */
    .editorial-grid.editorial-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    /* "Современный дизайн / Качественный металл" — в один столбец,
       без художественного сдвига вниз (он был рассчитан только на широкий экран) */
    .minimal-gallery-grid.minimal-gallery-grid {
        flex-direction: column !important;
        gap: 28px !important;
    }
    .gallery-item.item-large.item-large,
    .gallery-item.item-small.item-small {
        flex: 0 0 100% !important;
        width: 100% !important;
        margin-top: 0 !important;
    }

    /* Бегущая лента преимуществ — компактнее на мобильных */
    .perks-marquee.perks-marquee {
        padding: 12px 0 !important;
    }
    .perks-marquee-item.perks-marquee-item {
        font-size: 12.5px !important;
        padding: 0 18px !important;
        gap: 8px !important;
    }
}

/* ---------- Планшеты (681px – 1024px) ---------- */
@media (min-width: 681px) and (max-width: 1024px) {

    .products-grid.products-grid,
    .products-grid-centered.products-grid-centered {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: unset !important;
        gap: 28px 20px !important;
        max-width: 100% !important;
    }

    .product-card.product-card {
        width: 100% !important;
        height: auto !important;
        min-height: unset !important;
    }

    .product-img-box.product-img-box {
        aspect-ratio: 3 / 4 !important;
        height: auto !important;
        max-height: none !important;
    }
    .product-img-box img,
    .product-image.product-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* На планшете три колонки ещё помещаются — просто уменьшаем зазор */
    .editorial-grid.editorial-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }

    /* Художественный сдвиг вниз остаётся, но меньше, чем на десктопе */
    .gallery-item.item-small.item-small {
        margin-top: 40px !important;
    }
}

/* ---------- Ноутбуки и десктоп (от 1025px, включая 1440px) ---------- */
@media (min-width: 1025px) {

    /* Сбрасываем фиксированную высоту строки 500px и repeat(3, 1fr), которые
       тянулись сюда из старых мобильных файлов и портили сетку на 1440px.

       .products-grid на главной всегда ровно 4 товара в ряд (гарантированно,
       без вероятности переноса четвёртой карточки на новую строку — это и
       было целью). Каталоги kychna.html/vanna.html используют отдельный
       класс .products-grid--catalog — для них товаров не всегда 4, поэтому
       там нужно центрирование через auto-fit, а не жёсткие 4 колонки. */
    .products-grid.products-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        grid-template-rows: unset !important;
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .products-grid-centered.products-grid-centered,
    .products-grid--catalog.products-grid--catalog {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(250px, 340px)) !important;
        grid-template-rows: unset !important;
        justify-content: center !important;
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .product-img-box.product-img-box {
        aspect-ratio: 3 / 4 !important;
    }
    .product-img-box img,
    .product-image.product-image {
        object-fit: cover !important;
    }
}

/* ==========================================================================
   КОРЗИНА — МОБИЛЬНАЯ АДАПТАЦИЯ (единый, чистый блок стилей)
   Структура на всех экранах одна и та же: шапка / скролл со списком
   товаров / закреплённая внизу панель "Итого + Оформить заказ".
   ========================================================================== */
@media (max-width: 900px) {

    .cart-panel-header {
        padding: 16px 16px 12px;
    }

    .cart-panel-title {
        font-size: 21px;
    }

    .cart-close-btn {
        font-size: 28px;
    }

    .cart-content-row {
        padding: 0 16px;
        margin: 16px auto;
    }

    .slider-container {
        height: auto;
        border-radius: 18px;
        margin: 16px auto;
    }

    .cart-items-list {
        gap: 10px;
    }

    .cart-item-row {
        padding: 12px;
        gap: 10px 12px;
        border-radius: 14px;
    }

    .cart-item-link {
        flex-basis: 100%;
        gap: 12px;
    }

    .cart-item-img {
        width: 58px;
        height: 58px;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .cart-item-unit-price {
        font-size: 12px;
    }

    /* Строка с количеством/ценой/удалением уходит на вторую строку
       и растягивается на всю ширину карточки, чтобы ничего не сжималось */
    .cart-item-end {
        flex-basis: 100%;
        margin-left: 0;
        justify-content: space-between;
        gap: 10px;
    }

    .cart-item-total {
        min-width: auto;
        font-size: 15px;
    }

    /* Нижняя панель "Итого / Оформить заказ" — компактная, всегда видна */
    .cart-summary-bar {
        padding: 12px 16px;
        gap: 12px;
    }

    .cart-summary-value {
        font-size: 18px;
    }

    .cart-summary-label {
        font-size: 11px;
    }

    .btn-red-checkout {
        padding: 13px 20px;
        font-size: 14px;
    }
}

/* Совсем узкие экраны (390px и уже) — донастройка, чтобы кнопка
   оформления заказа и итог помещались в одну строку без наезжания */
@media (max-width: 400px) {

    .cart-summary-bar-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn-red-checkout {
        width: 100%;
        text-align: center;
        padding: 13px 16px;
    }

    .cart-summary-info {
        width: 100%;
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }
}

/* ==========================================================================
   ЛИЧНЫЙ КАБИНЕТ: САЙДБАР СВЕРХУ ДЛЯ ПЛАНШЕТА И ТЕЛЕФОНА (до 1024px)
   Без бургера — просто ставим блок профиля (аватар/телефон + пункты меню +
   кнопка "Выйти") цельной карточкой над содержимым вкладки. Пункты меню —
   аккуратная сетка 2×2, чтобы всё было ровно "по линейке" даже на узких
   экранах (проверено под 375px). Селекторы задвоены (.pc-sidebar.pc-sidebar),
   чтобы гарантированно перебить более старые правила для .pc-sidebar выше
   по файлу, независимо от их порядка.
   ========================================================================== */
@media (max-width: 1024px) {

    .pc-layout.pc-layout {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
    }

    .pc-sidebar.pc-sidebar {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        transform: none !important;
        box-shadow: none !important;
        border-right: none !important;
        border-bottom: 1px solid #ece7da !important;
        padding: 24px 22px !important;
        gap: 20px !important;
        box-sizing: border-box !important;
    }

    .pc-nav.pc-nav {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .pc-nav-item.pc-nav-item {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 12px 10px !important;
        white-space: nowrap !important;
    }

    .pc-logout-btn.pc-logout-btn {
        width: 100% !important;
        margin-top: 4px !important;
    }

    .pc-content.pc-content {
        padding: 24px 20px !important;
    }
}

/* Совсем узкие экраны (375px и уже) — сжимаем текст в кнопках меню,
   чтобы "Просмотренные"/"Избранное" не переносились криво */
@media (max-width: 400px) {
    .pc-nav-item.pc-nav-item {
        font-size: 13px !important;
        padding: 11px 6px !important;
        gap: 6px !important;
    }
    .pc-nav-item.pc-nav-item svg {
        width: 15px !important;
        height: 15px !important;
        flex-shrink: 0 !important;
    }
    .pc-sidebar.pc-sidebar {
        padding: 18px 16px !important;
        gap: 16px !important;
    }
}

/* ==========================================================================
   ШАПКА НА ОЧЕНЬ УЗКИХ ЭКРАНАХ (480px и уже, включая 375 / 320 / ~270px)
   На бургер-кнопке прячем слово "Меню" и оставляем только "☰" — это
   единственный способ сделать без правки HTML на всех страницах сразу
   (у кнопки нет отдельного тега для текста, оба символа — один текстовый
   узел, поэтому текст делаем невидимым через font-size: 0, а "☰" рисуем
   через ::before). Освободившееся место отдаём под лого и иконки справа
   (поиск/профиль/избранное/корзина), чтобы они гарантированно помещались
   без горизontального скролла шапки. Селекторы задвоены и стоят в конце
   файла, чтобы гарантированно перебить более ранние правила для этих же
   элементов, независимо от их порядка в файле.
   ========================================================================== */
@media (max-width: 480px) {

    /* Бургер: показываем только иконку "☰", слово "Меню" визуально скрыто */
    .open-btn.open-btn {
        font-size: 0 !important;
        gap: 0 !important;
        padding: 8px 8px !important;
        min-width: 32px !important;
    }
    .open-btn.open-btn::before {
        content: "☰";
        font-size: 19px;
        line-height: 1;
        color: #333333;
    }

    .header-controls.header-controls {
        gap: 12px !important;
        margin-left: 10px !important; /* было margin-left: auto — прижимало иконки к правому краю и обрезало их */
    }

    .header-row.header-row {
        justify-content: flex-start !important;
    }
}

@media (max-width: 375px) {
    .main-header .logo img,
    .logo.logo img {
        height: 30px !important;
    }

    .header-controls.header-controls {
        gap: 9px !important;
    }

    .open-btn.open-btn {
        padding: 7px 6px !important;
    }
    .open-btn.open-btn::before {
        font-size: 18px;
    }
}

@media (max-width: 320px) {
    .main-header .container.header-row,
    .header-row.header-row {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .main-header .logo img,
    .logo.logo img {
        height: 26px !important;
    }

    .header-controls.header-controls {
        gap: 7px !important;
        margin-left: 6px !important;
    }

    .header-controls svg {
        width: 20px !important;
        height: 20px !important;
    }

    .open-btn.open-btn {
        padding: 6px 5px !important;
    }
    .open-btn.open-btn::before {
        font-size: 17px;
    }
}

/* Экстремально узкие экраны (~270-300px) — на всякий случай, чтобы ничего
   не вылезало за границы даже там */
@media (max-width: 300px) {
    .main-header .container.header-row,
    .header-row.header-row {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .main-header .logo img,
    .logo.logo img {
        height: 22px !important;
    }

    .header-controls.header-controls {
        gap: 4px !important;
        margin-left: 4px !important;
    }

    .header-controls svg {
        width: 18px !important;
        height: 18px !important;
    }

    .open-btn.open-btn {
        padding: 5px 4px !important;
        min-width: 26px !important;
    }
    .open-btn.open-btn::before {
        font-size: 15px;
    }

    /* Бейджи-кружки на избранном и корзине — сжимаем, чтобы не наезжали друг на друга */
    .wishlist-badge.wishlist-badge,
    .cart-badge.cart-badge {
        font-size: 8px !important;
        min-width: 12px !important;
        height: 12px !important;
        padding: 1px 3px !important;
        top: -4px !important;
        right: -6px !important;
    }
}

/* ==========================================
   COOKIE-СОГЛАСИЕ — на мобильных превращаем узкий уголок
   в удобную полосу на всю ширину снизу экрана
   ========================================== */
@media (max-width: 768px) {
    .cookie-consent {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
        padding: 18px 18px 16px;
        border-radius: 18px;
    }

    .cookie-consent-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 10px;
    }

    .cookie-consent-text {
        font-size: 13px;
    }
}
