/* КАТАЛОГ-модалка 1153 */
@media (max-width: 1153px) {
    .catalog__fast-view img {
        display: flex;
    }
}

/* КАТАЛОГ — collapse action column at 900px */
@media (max-width: 900px) {
    .catalog__card-description {
        display: none;
    }
}

/* КАТАЛОГ — stack sidebar above products at 780px */
@media (max-width: 780px) {
    .catalog {
        flex-direction: column;
    }

    .left-panel {
        width: 100%;
        position: static;
        margin-bottom: 8px;
    }

    .left-panel .filter-wrap {
        border-radius: 16px;
    }

    .catalog__card {
        padding: 14px 16px;
        gap: 0;
        border-radius: 16px;
    }

    .catalog__images {
        width: 110px;
        flex-shrink: 0;
    }

    .catalog__image {
        width: 90px;
        height: 90px;
    }

    .catalog__images a.catalog__openModalBtn {
        display: none;
    }

    .catalog__card-text {
        padding: 0 14px;
    }

    .catalog__card-text-title {
        font-size: 14px;
    }

    .catalog__card-text-numbers {
        font-size: 16px;
    }
}

/* КАТАЛОГ — mobile phones */
@media (max-width: 575.98px) {
    .catalog-page .container,
    .category .container {
        padding-top: 130px;
    }

    .catalog__address {
        padding-top: 0;
    }

    .catalog__card {
        padding: 12px 14px;
        border-radius: 14px;
        flex-wrap: nowrap;
        align-items: center;
    }

    .catalog__images {
        width: 90px;
        flex-shrink: 0;
        gap: 6px;
    }

    .catalog__image {
        width: 80px;
        height: 80px;
    }

    .catalog__card-text {
        padding: 0 12px;
    }

    .catalog__card-text-title {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .catalog__card-text-numbers {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .catalog__card-text-text {
        display: none;
    }

    .catalog__card-text-color p {
        display: none;
    }

    .catalog__icon {
        width: 16px;
        height: 16px;
    }

    .catalog__card-description {
        display: none;
    }
}

/* КОРЗИНА - 1280 */
@media (max-width: 1280px) {
    .shoppingcart {
        display: flex;
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }
}

/* КОРЗИНА - 640 */
@media (max-width: 640px) {
    .shoppingcart__card {
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 15px;
    }

    .shoppingcart__card-photo {
        justify-content: center;
    }

    .shoppingcart__card-price {
        max-width: 100%;
        display: flex;
        flex-wrap: nowrap;
        align-items: end;
        gap: 20px;
        /* justify-content: space-between; */
        padding: 0 20px 20px 20px;
    }

    .shoppingcart__card-price-num {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .shoppingcart__order {
        width: 100%;
        max-width: none;
    }
}

/* КАРТОЧКА-товара - 1080 */
@media (max-width: 1080px) {
    .product-card {
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 30px;
    }

    .product__card-description {
        display: grid;
        grid-template-columns: 1fr;
    }

    .product__card-description-one {
        padding: 30px;
    }

    .product__info {
        padding: 30px 30px;
    }

    .product__title {
        font-size: 30px;
        line-height: 40px;
    }

    .product__title-center,
    .product__text-center {
        padding: 0 0 30px 0;
    }

    .product__title-center {
        font-size: 30px;
        line-height: 40px;
    }
}

/* КАРТОЧКА-товара - 840 */
@media (max-width: 840px) {
    .product__card-props {
        grid-template-columns: 1fr 1fr;
    }

    .product__card-props-item {
        padding: 30px;
    }

    .product__card-props-item:not(:last-child) {
        border-right: none;
    }
}

/* 1080 */
@media (max-width: 1180px) {
    .navbar__dropup-desktop {
        display: none;
    }
    .navbar__icon, .search-button {
        width: 26px;
        height: 26px;
    }

    .navbar__bottom-a {
        display: none;
    }

    .navbar__bottom-ul {
        display: block;
        margin: 0 auto;
        background-color: transparent;
        box-shadow: none;
    }

    .navbar__bottom-order {
        box-shadow: 2px 2px 20px 0px rgba(0, 0, 0, 0.25);
    }

    .home__photos-scale {
        display: flex;
        justify-content: center;
        scale: 1;
    }

    #home {
        display: flex;
        flex-direction: column;
        gap: 0px;
    }

    .home__title-three {
        display: flex;
    }

    .home__title-one,
    .home__title-two {
        display: none;
    }

    .li-nav {
        display: none !important;
    }

    .burger {
        display: flex;
    }

    .navbar__top-ul {
        display: flex;
        position: relative;
    }
    
    /* Ensure icons are visible on mobile */
    .navbar__top-ul > li:not(.li-nav) {
        display: flex;
        align-items: center;
    }

    .delivery__content {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .delivery__card-img {
        max-width: 400px;
    }
}

@media (max-width: 991px) {
    .li-search{
        display: block;
    }
    .home__button{
        margin-top: 40px;
        display: block;
    }
    .footer-content{
        gap: 10px;
    }
    .catalog__fast-view{
        justify-content: center;
    }
}
/* 800 */
@media (max-width: 800px) {
    .footer-section {
        flex: 1 0 100%;
        margin-bottom: 30px;
    }

    .footer-copyright {
        display: block;
    }

    .clients__content {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .items {
        padding: 20px;
    }

    .item_3, .item_6, .item_9{
        border-right: none;
    }
    .item_4, .item_8{
        border-right: var(--border);
    }
    .item_9{
        border-bottom: var(--border);
    }

}

/* 640 */
@media (max-width: 640px) {
    header .navbar__top{
        padding: 10px 16px 0;
        flex-wrap: wrap;       /* wrap lets search bar go to row 2 */
        gap: 0;
        justify-content: space-between;
        align-items: center;
        background: #ffffff;
    }

    /* First row (logo + icons) must never wrap internally */
    header .navbar__top > a,
    header .navbar__top > ul {
        flex-shrink: 0;
    }

    /* Logo — slightly smaller so icons fit on same row */
    .navbar__logo {
        width: 148px;
        flex-shrink: 0;
    }

    /* Icons container — single row, no wrap */
    .navbar__top-ul {
        gap: 6px;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
    }

    /* Hide desktop search, show currency */
    .li-search {
        display: none !important;
    }

    /* Show currency switcher on mobile — compact style */
    .li-currency {
        display: flex !important;
        align-items: center;
    }
    .li-currency .currency-btn {
        padding: 5px 8px;
        font-size: 12px;
        font-weight: 700;
        border-radius: 8px;
        border: 1.5px solid #e0e0e0;
        background: #f5f5f5;
        color: #1a1a2e;
    }
    .li-currency .currency-btn:after {
        margin-left: 4px;
        border-top-color: #1a1a2e;
    }
    .li-currency .currency-menu {
        right: 0;
        left: auto;
        z-index: 9999;
    }

    .li-profile,
    .li-basket,
    .li-compare {
        display: flex !important;
    }

    .li-profile .navbar__icon,
    .li-basket .navbar__icon,
    .li-compare .navbar__icon {
        width: 22px;
        height: 22px;
    }

    /* Tighter padding on icon links so they don't push layout wide */
    .li-profile .header-icon-link,
    .li-basket .header-icon-link,
    .li-compare .header-icon-link {
        padding: 4px;
    }

    .navbar__icon.burger {
        width: 28px;
        height: 28px;
    }

    #menu-toggle {
        display: none !important;
    }

    /* Mobile search bar — second row of header */
    .mobile-search-bar {
        display: block;
        width: 100%;
        flex-basis: 100%;
        padding: 10px 0 6px;
    }

    .mobile-search-bar form {
        display: flex;
        align-items: center;
        background-color: #f2f2f2;
        border-radius: 27px;
        padding: 0 18px;
        height: 54px;
        position: relative;
    }

    .mobile-search-bar input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 16px;
        outline: none;
        color: #333;
    }

    .mobile-search-bar input::placeholder {
        color: #aaa;
        font-size: 16px;
    }

    .mobile-search-bar button {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        padding: 0;
    }

    .mobile-search-bar .search-button {
        position: static;
        transform: none;
        width: 24px;
        height: 24px;
    }
    .delivery__card {
        display: grid;
        grid-template-columns: 1fr;
        /* gap: 25px; */
    }
    .call-button{
        right: -20px;
    }
    .product__card-description-one h2, .product__card-description-one h1{
        font-size: 28px;
        padding: 0;
    }
    .product__info{
        width: 360px;
    }
    .product__card-description-one h1, .product__card-description-one h2, .product__card-description h1, .product__card-description h2{
        padding: 20px 0;
        font-size: 27px;
    }
    .product__card-description-one{
        padding: 0 20px;
    }
    .filter-wrap .filter__title{
        display: none;
    }
    .left-panel .mob_filter_title{
        display: flex;
    }
    .left-panel .filter-wrap{
        opacity: 0;
        visibility: hidden;
        height: 0;
        padding: 0;
    }
    .left-panel .filter-wrap.active{
        opacity: 1;
        visibility: visible;
        height: auto;
        padding: 20px 10px 20px;
    }
    .catalog__images{
        margin-bottom: 0;
    }
}

/* 540 */
@media (max-width: 540px) {
    .home__button{
        margin-top: 0;
    }
    .home__photos-scale {
        scale: 0.8;
    }
    .navbar__bottom-ul{
        padding: 20px 0;
        margin: 0;
    }
    .navbar__bottom-ul .btn__modal{
        white-space: nowrap;
        font-size: 14px;
        padding: 20px 20px;
    }

}
/* Modal mobile */
@media (max-width: 640px) {
    .modal-window {
        padding: 12px;
        align-items: flex-end;
    }

    .modal-window > .modal-window-inside {
        padding: 32px 20px 28px;
        border-radius: 24px;
        max-width: 100%;
        width: 100%;
    }

    .modal-form-title {
        font-size: 19px;
    }
}

/* 460 */
/*@media (max-width: 460px) {*/
/*    .navbar__bottom-ul {*/
/*        margin-left: -30px;*/
/*    }*/
/*}*/
