/**
 * Modern Design & Layout Stylesheet for TD Next
 * Version: 1.0.0
 */

:root {
    --next-primary: #0083DD;
    --next-primary-dark: #005f9e;
    --next-primary-light: #e0f2fe;
    --next-dark: #00459A;
    --next-accent: #e67102;
    --next-accent-hover: #c95e00;
    --next-success: #16a34a;
    --next-text: #1e293b;
    --next-text-muted: #64748b;
    --next-text-light: #94a3b8;
    --next-bg: #f8fafc;
    --next-bg-card: #ffffff;
    --next-border: #e2e8f0;
    --next-border-focus: #38bdf8;
    --next-radius-sm: 6px;
    --next-radius-md: 10px;
    --next-radius-lg: 14px;
    --next-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --next-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --next-shadow-lg: 0 12px 28px rgba(0, 45, 90, 0.12);
}

/* ==========================================================================
   1. GLOBAL RESET & BASE MODERNIZATION
   ========================================================================== */
body {
    color: var(--next-text);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

/* ==========================================================================
   2. HEADER REFINEMENTS
   ========================================================================== */
.header__top {
    padding: 1.8rem 0 !important;
}

.header-logo__icon {
    transition: transform 0.2s ease;
}

.header-logo:hover .header-logo__icon {
    transform: scale(1.02);
}

.header-phones {
    display: flex !important;
    align-items: center !important;
    gap: 3rem !important;
}

.header-phones__item + .header-phones__item {
    margin-left: 0 !important;
}

.header-contact-block {
    display: flex;
    flex-direction: column;
}

.header-phone-link {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--next-dark);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.header-phone-link:hover {
    color: var(--next-primary);
}

.header-email-link {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--next-text-muted);
    text-decoration: none;
}

.header-email-link:hover {
    color: var(--next-primary);
}

.header-contact-sub {
    font-size: 1.15rem;
    color: var(--next-text-light);
    margin-top: 0.2rem;
}

.callback-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.9rem 1.8rem !important;
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    color: var(--next-primary) !important;
    background: transparent !important;
    border: 1.5px solid var(--next-primary) !important;
    border-radius: 2rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.callback-btn:hover {
    background: var(--next-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 131, 221, 0.25) !important;
    transform: translateY(-1px) !important;
}

.header-search {
    position: relative !important;
}

.header-search input {
    height: 4.4rem !important;
    border-radius: 2.2rem !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 0 4.8rem 0 2rem !important;
    font-size: 1.45rem !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.header-search input:focus {
    border-color: var(--next-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 131, 221, 0.15) !important;
    outline: none !important;
}

.header-search__btn {
    cursor: pointer !important;
}

.search-results {
    border-radius: var(--next-radius-md) !important;
    box-shadow: var(--next-shadow-lg) !important;
    border: 1px solid var(--next-border) !important;
    overflow: hidden !important;
    z-index: 1200 !important;
}

.header-bottom {
    box-shadow: 0 2px 10px rgba(0, 69, 154, 0.15) !important;
}

.catalog-btn {
    padding: 0.8rem 1.6rem !important;
    border-radius: var(--next-radius-sm) !important;
    transition: background 0.15s ease !important;
}

.catalog-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.header-nav__item-link {
    font-weight: 500 !important;
    border-radius: var(--next-radius-sm) !important;
    padding: 0.6rem 1rem !important;
}

.header-nav__list-item--dropdown .header-nav__item-sublinks {
    border-radius: var(--next-radius-md) !important;
    box-shadow: var(--next-shadow-lg) !important;
    border: 1px solid var(--next-border) !important;
    padding: 1.2rem 0 !important;
}

.header-nav__list-item--dropdown .header-nav__item-sublinks a {
    padding: 0.8rem 2rem !important;
    font-size: 1.4rem !important;
}

.header-nav__list-item--dropdown .header-nav__item-sublinks a:hover {
    background: var(--next-bg) !important;
    color: var(--next-primary) !important;
}

/* ==========================================================================
   3. MULTILEVEL CATALOG SIDEBAR (.catp-aside)
   ========================================================================== */
.catp-aside {
    background: #ffffff;
    border-radius: var(--next-radius-md);
    border: 1px solid var(--next-border);
    padding: 1.6rem;
    box-shadow: var(--next-shadow-sm);
}

.catp-aside__navs {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.6rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--next-border);
}

.catp-aside__navs-btn {
    flex: 1;
    padding: 0.9rem 1.2rem !important;
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    border-radius: var(--next-radius-sm) !important;
    border: none !important;
    cursor: pointer !important;
    color: var(--next-text-muted) !important;
    background: #f1f5f9 !important;
    transition: all 0.15s ease !important;
    text-align: center;
}

.catp-aside__navs-btn:hover {
    color: var(--next-text) !important;
    background: #e2e8f0 !important;
}

.catp-aside__navs-btn.tabs-btn_active {
    color: #ffffff !important;
    background: var(--next-primary) !important;
    box-shadow: 0 2px 6px rgba(0, 131, 221, 0.3) !important;
}

/* Multilevel category tree */
.catpAside-level {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.catpAside-node {
    display: flex;
    flex-direction: column;
    position: relative;
}

.catpAside-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border-radius: var(--next-radius-sm);
    transition: background 0.15s ease, color 0.15s ease;
}

.catpAside-node.depth-1 > .catpAside-row {
    font-weight: 600;
    font-size: 1.45rem;
    color: var(--next-text);
}

.catpAside-node.depth-2 > .catpAside-row {
    padding-left: 2rem;
    font-size: 1.35rem;
    color: #334155;
}

.catpAside-node.depth-3 > .catpAside-row {
    padding-left: 3.2rem;
    font-size: 1.3rem;
    color: var(--next-text-muted);
}

.catpAside-node.depth-4 > .catpAside-row {
    padding-left: 4.4rem;
    font-size: 1.25rem;
    color: var(--next-text-muted);
}

.catpAside-node.depth-5 > .catpAside-row {
    padding-left: 5.6rem;
    font-size: 1.2rem;
    color: var(--next-text-muted);
}

.catpAside-row:hover {
    background: #f1f5f9;
}

.catpAside-row:hover .catpAside-name {
    color: var(--next-primary);
}

.catpAside-row.active,
.catpAside-node.is-active-leaf > .catpAside-row {
    background: var(--next-primary-light) !important;
    color: var(--next-primary) !important;
    font-weight: 600 !important;
    border-left: 3px solid var(--next-primary);
}

.catpAside-node.is-active-leaf > .catpAside-row .catpAside-name {
    color: var(--next-primary) !important;
}

.catpAside-name {
    flex: 1;
    text-decoration: none;
    color: inherit;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: break-word;
}

.catpAside-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: var(--next-text-light);
    transition: transform 0.2s ease, background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.catpAside-toggle:hover {
    background: #e2e8f0;
    color: var(--next-primary);
}

.catpAside-toggle svg {
    width: 1.6rem;
    height: 1.6rem;
    transition: transform 0.2s ease;
}

.catpAside-node.is-expanded > .catpAside-row .catpAside-toggle svg {
    transform: rotate(180deg);
}

.catpAside-children {
    border-left: 1.5px solid #f1f5f9;
    margin-left: 1.2rem;
    padding-left: 0.4rem;
}

/* ==========================================================================
   4. PRODUCT CARDS & GRID OVERRIDES (CRITICAL BUG FIX)
   ========================================================================== */
.catp__content.grid-layout {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-auto-rows: auto !important; /* FIXED: no fixed 38.7rem! */
    align-items: stretch !important;
    gap: 2.4rem !important;
    width: 100% !important;
}

@media (max-width: 1366px) {
    .catp__content.grid-layout {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .catp__content.grid-layout {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.6rem !important;
    }
}

@media (max-width: 540px) {
    .catp__content.grid-layout {
        grid-template-columns: 1fr !important;
    }
}

.product {
    height: auto !important;
    min-height: 48rem !important;
    max-height: none !important; /* FIXED: removed clipping max-height */
    overflow: visible !important; /* FIXED: removed overflow hidden */
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 1px solid var(--next-border) !important;
    border-radius: var(--next-radius-md) !important;
    padding: 1.8rem !important;
    box-shadow: var(--next-shadow-sm) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--next-shadow-lg) !important;
    border-color: #93c5fd !important;
    z-index: 5 !important;
    max-height: none !important;
    height: auto !important;
}

.product-img__wrapper {
    position: relative !important;
    width: 100% !important;
    height: 18rem !important;
    max-height: 18rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border-radius: var(--next-radius-sm) !important;
    margin-bottom: 1.4rem !important;
    overflow: hidden !important;
}

.product-img__wrapper .product__img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: transform 0.25s ease !important;
}

.product:hover .product-img__wrapper .product__img {
    transform: scale(1.05);
}

.product-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.product__name {
    display: block !important;
    font-size: 1.45rem !important;
    font-weight: 600 !important;
    color: var(--next-text) !important;
    line-height: 1.35 !important;
    margin-bottom: 1.2rem !important;
    text-decoration: none !important;
    word-break: break-word !important;
    transition: color 0.15s ease !important;
}

.product__name:hover {
    color: var(--next-primary) !important;
}

.product-info {
    margin-top: auto !important;
    padding-top: 1.2rem !important;
    border-top: 1px solid #f1f5f9 !important;
}

.product-price {
    display: grid !important;
    gap: 0.4rem !important;
    margin-bottom: 1.2rem !important;
}

.product-price__item-prop {
    font-size: 1.3rem !important;
    color: var(--next-text-muted) !important;
}

.product-price__item-retail {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: var(--next-accent) !important;
}

.product-price__item-value {
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    color: var(--next-text) !important;
}

.product-data {
    display: grid !important;
    gap: 0.4rem !important;
    margin-bottom: 1.4rem !important;
}

.product-data__item-prop,
.product-data__item-value {
    font-size: 1.2rem !important;
}

.product-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    margin-top: 1rem !important;
}

.product-counter {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 9.6rem !important;
    height: 3.8rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--next-radius-sm) !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.product-counter__btn {
    flex: 0 0 2.8rem !important;
    width: 2.8rem !important;
    height: 100% !important;
    max-width: none !important;
    border: none !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    user-select: none !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.product-counter__btn:hover {
    background: #e2e8f0 !important;
    color: var(--next-primary) !important;
}

.product-counter__btn:active {
    background: #cbd5e1 !important;
}

.product-counter__value {
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    border: none !important;
    border-left: 1px solid #f1f5f9 !important;
    border-right: 1px solid #f1f5f9 !important;
    padding: 0 0.2rem !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: var(--next-text) !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.product-counter__value::-webkit-outer-spin-button,
.product-counter__value::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.product-cart-btn {
    flex: 1 1 auto !important;
    height: 3.8rem !important;
    border: none !important;
    border-radius: var(--next-radius-sm) !important;
    background: var(--next-primary) !important;
    color: #ffffff !important;
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(0, 131, 221, 0.25) !important;
    transition: all 0.2s ease !important;
}

.product-cart-btn:hover {
    background: var(--next-primary-dark) !important;
    box-shadow: 0 4px 10px rgba(0, 131, 221, 0.35) !important;
    transform: translateY(-1px) !important;
}

.product-cart-btn.incart {
    background: var(--next-success) !important;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25) !important;
}

/* ==========================================================================
   5. CATALOG ROW LAYOUT OVERRIDES
   ========================================================================== */
.catp__content.row-layout {
    grid-auto-rows: auto !important;
    gap: 1.6rem !important;
}

.catp__content.row-layout .product {
    min-height: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 2rem !important;
    padding: 1.6rem !important;
}

.catp__content.row-layout .product-img__wrapper {
    width: 16rem !important;
    height: 14rem !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
}

.catp__content.row-layout .product-content {
    flex: 1 1 auto !important;
}

.catp__content.row-layout .product__name {
    margin-bottom: 1rem !important;
}

.catp__content.row-layout .product-info {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 2rem !important;
    border-top: none !important;
    padding-top: 0 !important;
}

.catp__content.row-layout .product-actions {
    flex-shrink: 0 !important;
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .catp__content.row-layout .product {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .catp__content.row-layout .product-img__wrapper {
        width: 100% !important;
        height: 18rem !important;
    }
    .catp__content.row-layout .product-info {
        flex-direction: column !important;
    }
}

/* ==========================================================================
   6. HOMEPAGE POPULAR CATEGORIES & CARDS
   ========================================================================== */
.main-category__inner {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
}

@media (max-width: 1200px) {
    .main-category__inner {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .main-category__inner {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.4rem !important;
    }
}

@media (max-width: 480px) {
    .main-category__inner {
        grid-template-columns: 1fr !important;
    }
}

.main-category__item {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 28rem !important;
    background: #ffffff !important;
    border: 1px solid var(--next-border) !important;
    border-radius: var(--next-radius-md) !important;
    padding: 2.2rem 1.6rem !important;
    box-shadow: var(--next-shadow-sm) !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.main-category__item:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--next-shadow-md) !important;
    border-color: #93c5fd !important;
}

.main-category__item-img {
    max-height: 16rem !important;
    width: 100% !important;
    object-fit: contain !important;
    margin: 0 auto 1.4rem !important;
    transition: transform 0.2s ease !important;
}

.main-category__item:hover .main-category__item-img {
    transform: scale(1.04);
}

.main-category__item-descr {
    font-size: 1.55rem !important;
    font-weight: 600 !important;
    color: var(--next-text) !important;
    line-height: 1.35 !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Fix intro slider dots overflow */
.intro-slider .swiper-pagination {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* ==========================================================================
   7. BREADCRUMBS POLISH
   ========================================================================== */
.breadcrumb-wrapper {
    margin-bottom: 2.4rem !important;
}

.breadcrumb {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.6rem !important;
    font-size: 1.35rem !important;
    color: var(--next-text-muted) !important;
}

.breadcrumb a {
    color: var(--next-primary) !important;
    text-decoration: none !important;
}

.breadcrumb a:hover {
    color: var(--next-primary-dark) !important;
    text-decoration: underline !important;
}

.breadcrumb a::after {
    content: "›";
    margin-left: 0.6rem;
    color: var(--next-text-light);
    text-decoration: none !important;
    display: inline-block;
}

.breadcrumb a:last-child::after {
    display: none;
}

/* ==========================================================================
   8. PRODUCT PAGE DETAILS
   ========================================================================== */
.prodp__heading {
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    color: var(--next-text) !important;
    line-height: 1.3 !important;
    margin-bottom: 2rem !important;
}

.prodp-gallery__main {
    border: 1px solid var(--next-border) !important;
    border-radius: var(--next-radius-md) !important;
    background: #ffffff !important;
    padding: 2rem !important;
}

.prodp-gallery__main-item img {
    max-height: 38rem !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

.prodp-data__content {
    background: #ffffff !important;
    border: 1px solid var(--next-border) !important;
    border-radius: var(--next-radius-md) !important;
    padding: 2.4rem !important;
    box-shadow: var(--next-shadow-sm) !important;
}

.prodp-data__prices {
    background: #f8fafc !important;
    border-radius: var(--next-radius-sm) !important;
    padding: 1.6rem !important;
    margin-bottom: 2rem !important;
}

.product-data__item-value--accent {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: var(--next-accent) !important;
}

.prodp-data__content .product-actions {
    max-width: 32rem !important;
    width: 100% !important;
}

.prodp-data__content .product-counter {
    width: 10.8rem !important;
    height: 4.4rem !important;
}

.prodp-data__content .product-counter__btn {
    flex: 0 0 3.2rem !important;
    width: 3.2rem !important;
    font-size: 2rem !important;
}

.prodp-data__content .product-cart-btn {
    height: 4.4rem !important;
    font-size: 1.5rem !important;
    padding: 0 2rem !important;
}

.dp-doc {
    display: flex !important;
    align-items: center !important;
    gap: 1.2rem !important;
    padding: 1.2rem 1.6rem !important;
    background: #f8fafc !important;
    border: 1px solid var(--next-border) !important;
    border-radius: var(--next-radius-sm) !important;
    margin-bottom: 0.8rem !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
}

.dp-doc:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.dp-doc__link {
    font-size: 1.4rem !important;
    font-weight: 500 !important;
    color: var(--next-primary) !important;
    text-decoration: none !important;
}

.dp-doc__link:hover {
    text-decoration: underline !important;
}

.dp-doc__size {
    font-size: 1.2rem !important;
    color: var(--next-text-muted) !important;
    margin-left: auto !important;
}

/* ==========================================================================
   9. MOBILE REFINEMENTS
   ========================================================================== */
@media (max-width: 920px) {
    .header-content--mob {
        display: flex;
        flex-direction: column;
        gap: 1.6rem;
    }
    .header-contact-mob {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        margin-top: 1rem;
    }
    .header-contact-mob .callback-btn {
        margin-top: 0.5rem;
    }
    .header-nav__list-item--dropdown .header-nav__item-sublinks {
        display: none !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
    }
    .header-nav__list-item--dropdown.active .header-nav__item-sublinks {
        display: flex !important;
        flex-direction: column !important;
        padding-right: 1.5rem !important;
    }
}

/* ==========================================================================
   10. CATALOG MEGA MENU (.menu-catalog)
   ========================================================================== */
.menu-catalog {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 2000 !important;
}

.menu-catalog__inner {
    width: 36rem !important;
    max-width: 90vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12) !important;
    padding: 6rem 1rem 3rem !important;
    overflow-y: auto !important;
    border-right: 1px solid var(--next-border) !important;
}

.menu-catalog__close {
    position: fixed !important;
    top: 1.6rem !important;
    left: 31rem !important;
    width: 3.6rem !important;
    height: 3.6rem !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: 1px solid var(--next-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 2100 !important;
    transition: all 0.2s ease !important;
}

.menu-catalog__close:hover {
    background: var(--next-primary) !important;
    border-color: var(--next-primary) !important;
    transform: rotate(90deg) !important;
}

.menu-catalog__close svg {
    width: 1.6rem !important;
    height: 1.6rem !important;
    fill: #475569 !important;
    transition: fill 0.2s ease !important;
}

.menu-catalog__close:hover svg {
    fill: #ffffff !important;
}

.menu-catalog__main-link {
    font-size: 1.45rem !important;
    font-weight: 500 !important;
    color: var(--next-text) !important;
    padding: 1rem 1.4rem !important;
    border-radius: var(--next-radius-sm) !important;
    line-height: 1.35 !important;
    margin-bottom: 0.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    word-break: break-word !important;
    transition: all 0.15s ease !important;
}

.menu-catalog__item:hover > .menu-catalog__main-link {
    background: var(--next-primary) !important;
    color: #ffffff !important;
}

.menu-catalog__item:hover > .menu-catalog__main-link svg {
    fill: #ffffff !important;
}

@media (min-width: 921px) {
    .menu-catalog__inner {
        position: relative !important;
        overflow: visible !important;
    }
    .menu-catalog__item:hover > .menu-catalog__sublinks {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 0 !important;
        left: 100% !important;
        width: 48rem !important;
        max-width: calc(100vw - 40rem) !important;
        min-height: 100vh !important;
        background: #ffffff !important;
        box-shadow: 10px 0 25px rgba(0, 0, 0, 0.08) !important;
        border-left: 1px solid var(--next-border) !important;
        padding: 5rem 1.8rem 2rem !important;
        overflow-y: auto !important;
        z-index: 2050 !important;
    }
    .menu-catalog__item:hover ~ .menu-catalog__close,
    .menu-catalog__item:hover .menu-catalog__close {
        left: auto !important;
    }
}

.menu-catalog__sublinks a {
    font-size: 1.4rem !important;
    line-height: 1.4 !important;
    padding: 0.8rem 1.2rem !important;
    border-radius: var(--next-radius-sm) !important;
    color: #334155 !important;
    display: block !important;
    word-break: break-word !important;
    transition: all 0.15s ease !important;
}

.menu-catalog__sublinks a:hover {
    background: var(--next-bg) !important;
    color: var(--next-primary) !important;
}

