/* Catalog/social flow polish after screenshots. */

.site-footer__compact-contact {
    display: grid !important;
    justify-items: end !important;
    align-content: start !important;
    gap: 10px !important;
    min-width: 280px !important;
    text-align: right !important;
}

.site-footer__socials {
    justify-content: flex-end !important;
    width: 100% !important;
}

.header-clean,
.header-clean__topbar,
.header-actions,
.header-category-nav {
    position: relative !important;
    overflow: visible !important;
}

.header-clean.header-clean--mockup {
    z-index: 9000 !important;
    overflow: visible !important;
}

.header-clean.header-clean--mockup .header-clean__topbar,
.header-clean.header-clean--mockup .header-search,
.header-clean.header-clean--mockup .header-actions {
    overflow: visible !important;
}

.header-clean.header-clean--mockup .header-category-nav {
    overflow: hidden !important;
}

.header-actions,
.header-category-nav {
    z-index: 80 !important;
}

.header-search {
    position: relative !important;
    overflow: visible !important;
    z-index: 220 !important;
}

.search-suggest {
    position: fixed !important;
    top: auto !important;
    bottom: auto !important;
    z-index: 9999 !important;
    max-height: min(320px, calc(100dvh - 150px)) !important;
    overflow: auto !important;
    box-shadow: 0 18px 44px rgba(7, 12, 22, .24) !important;
}

.search-suggest--portal {
    position: fixed !important;
    z-index: 2147483000 !important;
    isolation: isolate !important;
    contain: none !important;
    transform: none !important;
    max-height: min(330px, calc(100dvh - 112px)) !important;
    overscroll-behavior: contain !important;
}

.search-suggest:not(.is-open) {
    display: none !important;
    pointer-events: none !important;
}

.search-suggest.is-open {
    display: block !important;
    pointer-events: auto !important;
}

.catalog-drawer,
.mobile-menu,
.favorites-drawer {
    z-index: 10000 !important;
}

.header-catalog-button > img {
    display: none !important;
}

.header-catalog-button::before {
    content: "☰" !important;
    margin-right: 8px !important;
    font-size: 13px !important;
}

.header-social-link img {
    filter: brightness(0) invert(1) !important;
    color: #fff !important;
}

.catalog-products .product-card-v3,
.products-polished .product-card-v3,
.home-product-rail .product-card-v3 {
    padding: 10px !important;
}

.catalog-products .product-card-v2__photo,
.catalog-products .product-card-v2__photo-wrap,
.products-polished .product-card-v2__photo,
.products-polished .product-card-v2__photo-wrap,
.home-product-rail .product-card-v2__photo,
.home-product-rail .product-card-v2__photo-wrap {
    display: grid !important;
    place-items: center !important;
    margin-bottom: 8px !important;
    padding: 12px !important;
    overflow: hidden !important;
    border-radius: 15px !important;
    aspect-ratio: 1.38 / 1 !important;
}

.catalog-products .product-card-v2__photo-link,
.products-polished .product-card-v2__photo-link,
.home-product-rail .product-card-v2__photo-link {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

.catalog-products .product-card-v2__photo img,
.catalog-products .product-card-v2__photo-wrap img,
.catalog-products .product-card-v2__photo-link img,
.products-polished .product-card-v2__photo img,
.products-polished .product-card-v2__photo-wrap img,
.products-polished .product-card-v2__photo-link img,
.home-product-rail .product-card-v2__photo img,
.home-product-rail .product-card-v2__photo-wrap img,
.home-product-rail .product-card-v2__photo-link img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 88% !important;
    max-height: 88% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: auto !important;
    transform: none !important;
}

.catalog-products .product-card-v2__body,
.products-polished .product-card-v2__body,
.home-product-rail .product-card-v2__body {
    gap: 7px !important;
}

.catalog-products .product-card-v2__top,
.products-polished .product-card-v2__top,
.home-product-rail .product-card-v2__top {
    min-height: 22px !important;
    margin-bottom: 2px !important;
}

.catalog-products .status-inline,
.products-polished .status-inline,
.home-product-rail .status-inline {
    min-height: 22px !important;
    padding: 0 8px !important;
    font-size: 10.5px !important;
}

.catalog-products .product-code,
.products-polished .product-code,
.home-product-rail .product-code {
    font-size: 10.5px !important;
}

.catalog-products .product-card-v2__title,
.products-polished .product-card-v2__title,
.home-product-rail .product-card-v2__title {
    min-height: 34px !important;
    font-size: 14px !important;
    line-height: 1.12 !important;
}

.catalog-products .product-card-v3__chips,
.products-polished .product-card-v3__chips,
.home-product-rail .product-card-v3__chips {
    gap: 6px !important;
    margin-top: 5px !important;
}

.catalog-products .product-card-v3__chips span,
.products-polished .product-card-v3__chips span,
.home-product-rail .product-card-v3__chips span {
    min-height: 34px !important;
    padding: 6px 8px !important;
    border-radius: 11px !important;
}

.catalog-products .product-card-v3__chips small,
.products-polished .product-card-v3__chips small,
.home-product-rail .product-card-v3__chips small {
    font-size: 9px !important;
}

.catalog-products .product-card-v3__chips b,
.products-polished .product-card-v3__chips b,
.home-product-rail .product-card-v3__chips b {
    font-size: 11px !important;
}

.catalog-products .product-card-v3 .card-price strong,
.products-polished .product-card-v3 .card-price strong,
.home-product-rail .product-card-v3 .card-price strong {
    font-size: 20px !important;
}

.catalog-products .product-card-v2__bottom,
.products-polished .product-card-v2__bottom,
.home-product-rail .product-card-v2__bottom {
    gap: 6px !important;
}

.catalog-products .product-card-v2__bottom .button,
.catalog-products .product-card-v2__bottom button.button,
.products-polished .product-card-v2__bottom .button,
.products-polished .product-card-v2__bottom button.button,
.home-product-rail .product-card-v2__bottom .button,
.home-product-rail .product-card-v2__bottom button.button {
    min-height: 36px !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
}

.catalog-topline-v2 {
    align-items: center !important;
    gap: 12px !important;
}

.catalog-topline-v2 > p {
    margin: 0 !important;
}

.catalog-topline__sort {
    margin-left: auto !important;
}

.catalog-topline__sort label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #6f7890 !important;
    font-size: 13px !important;
    font-weight: 950 !important;
}

.catalog-topline__sort select,
.mobile-sort-form select,
.catalog-category-select select {
    min-height: 36px !important;
    border: 1px solid rgba(17, 26, 54, .10) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #111a36 !important;
    font-weight: 900 !important;
    outline: none !important;
}

.catalog-topline__sort select {
    padding: 0 32px 0 10px !important;
}

.quick-filter-chips,
.catalog-sidebar .mobile-filter-button {
    display: none !important;
}

.catalog-sidebar-v2 .catalog-filter-panel {
    margin-top: 16px !important;
}

.product-similar-section {
    margin-top: 18px;
}

.product-similar-section .section-head {
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .site-footer__compact-contact {
        justify-items: start !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    .site-footer__socials {
        justify-content: flex-start !important;
    }

    .catalog-topline-v2 {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
    }

    .catalog-topline__sort {
        display: none !important;
    }
}

@media (min-width: 901px) {
    .mobile-catalog-controls {
        display: none !important;
    }
}
