/* =============================================
   TOP NAV BAR
   ============================================= */
#top {
    background-color: #f6f6f6 !important;
    min-height: 40px;
}

#top .top-center-text {
    color: #1e1e1e;
    font-size: 12px;
}

#top .pr-header-mobile-menu-icon span {
    background: #121715 !important;
}


/* =============================================
   LANGUAGE SWITCHER (TOP BAR — DESKTOP)
   ============================================= */
.top-lang-btns {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
}

.top-lang-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #888 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    transition: color 0.2s !important;
}

.top-lang-btn:hover {
    color: #00A8E8 !important;
}

.top-lang-btn.active,
#top .top-lang-btn.active {
    color: #00A8E8 !important;
    font-weight: 500 !important;
}

.top-lang-sep {
    display: inline-block !important;
    width: 1px !important;
    height: 12px !important;
    background: #ccc !important;
    flex-shrink: 0 !important;
}


/* =============================================
   MOBILE MENU PANEL
   ============================================= */
#pr-mobile-menu-panel {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    max-width: 400px !important;
    height: 100dvh !important;
    z-index: 12010 !important;
    background-color: var(--pr-white-color) !important;
    transition: left var(--pr-main-transition) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1) !important;
}

#pr-mobile-menu-panel.active {
    left: 0 !important;
}

#pr-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 12002;
    display: none;
    opacity: 0;
    transition: opacity var(--pr-main-transition);
}

#pr-menu-overlay.active {
    display: block;
    opacity: 1;
}

.pr-mobile-menu-content {
    background-color: var(--pr-white-color) !important;
    flex-grow: 1 !important;
    overflow-y: auto !important;
}

#pr-mobile-menu-panel .dark-text {
    color: #121715 !important;
}

#pr-mobile-menu-panel .secondary-text {
    color: #4F5F99 !important;
}

@media (min-width: 992px) {
    #pr-mobile-menu-panel {
        max-width: 460px !important;
    }
}


/* =============================================
   MOBILE MENU — TOP ROW
   ============================================= */
.pr-mobile-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pr-mobile-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}


/* =============================================
   LANGUAGE SWITCHER (MOBILE MENU)
   ============================================= */
.pr-mobile-lang-btns {
    display: flex;
    align-items: center;
    gap: 0;
}

.pr-mobile-lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 7px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9DA4AE;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.2s;
}

.pr-mobile-lang-btn:hover {
    color: #00A8E8;
}

.pr-mobile-lang-btn.active {
    color: #00A8E8;
}

.pr-mobile-lang-sep {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #d1d5db;
    flex-shrink: 0;
}


/* =============================================
   MOBILE MENU — SEARCH ROW
   ============================================= */
.pr-mobile-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 14px;
    margin-bottom: 16px;
    background: #fafafa;
}

.pr-mobile-search-row input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    color: #121715;
}

.pr-mobile-search-row input::placeholder {
    color: #9DA4AE;
}

.pr-mobile-search-row button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}


/* =============================================
   MOBILE MENU — CATEGORY LIST
   ============================================= */
.pr-cat-list {
    border-top: 1px solid #f0f0f0;
}

.pr-cat-item {
    border-bottom: 1px solid #f0f0f0;
}

.pr-cat-item>div {
    min-height: 44px;
}

.pr-cat-link {
    font-size: 15px;
    color: #121715;
    text-decoration: none;
    padding: 10px 0;
    display: block;
    flex-grow: 1;
    transition: color 0.15s;
}

.pr-cat-link:hover,
.pr-cat-item.open .pr-cat-link {
    color: #00A8E8;
    text-decoration: none;
}

.pr-cat-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-cat-arrow {
    transition: transform 0.2s ease;
    display: block;
}

.pr-cat-item.open .pr-cat-arrow {
    transform: rotate(90deg);
}

.pr-cat-children {
    display: none;
    padding-bottom: 6px;
}

.pr-cat-children a {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    padding: 5px 0 5px 20px;
    display: block;
    transition: color 0.15s;
}

.pr-cat-children a:hover {
    color: #00A8E8;
}


/* =============================================
   MAIN HEADER
   ============================================= */
.pr-header .pr-header-center {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    flex: none !important;
}

.pr-header .pr-header-box {
    position: relative !important;
}

@media (max-width: 991px) {
    .pr-header .pr-header-center {
        position: static !important;
        transform: none !important;
        left: auto !important;
        flex: 1 !important;
        text-align: center;
    }
}

.pr-header .pr-header-buttons-item-count {
    background: #00A8E8 !important;
    color: #fff !important;
}

.pr-menu-icon-equal {
    gap: 5px !important;
    display: flex !important;
    flex-direction: column !important;
}

.pr-menu-icon-equal span {
    width: 20px !important;
    height: 2px !important;
    margin: 0 !important;
}

.pr-phone-link {
    color: #E86934 !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap !important;
    transition: color 0.2s;
}

.pr-phone-link:hover {
    color: #c9561d !important;
}

.pr-phone-link svg path {
    stroke: #E86934 !important;
}

.pr-phone-link:hover svg path {
    stroke: #c9561d !important;
}

.pr-header-buttons {
    gap: 4px !important;
}

.pr-header-buttons-item {
    padding: 6px 8px !important;
}

.pr-cart-text,
.pr-header-buttons-item-cart .pr-header-buttons-item-text {
    display: none !important;
}

/* Tablet search button (500px–991px) */
@media (min-width: 500px) and (max-width: 991px) {
    .pr-search-tablet {
        display: flex !important;
        align-items: center;
    }
}


/* =============================================
   HORIZONTAL CATEGORIES ROW
   ============================================= */
.pr-categories-row {
    border-top: 1px solid var(--pr-border-color, #e5e7eb);
    background: var(--pr-white-color, #fff);
}

.pr-header-main-categories {
    width: 100%;
    position: relative !important;
}

.pr-header-main-categories>ul,
.pr-header-main-categories>nav>ul,
.pr-header-main-categories .oct-menu-horizontal {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    justify-content: space-between !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0 !important;
}

.pr-header-main-categories>ul::-webkit-scrollbar,
.pr-header-main-categories>nav>ul::-webkit-scrollbar,
.pr-header-main-categories .oct-menu-horizontal::-webkit-scrollbar {
    display: none !important;
}

.pr-header-main-categories li {
    flex-shrink: 0 !important;
}

/* Slider buttons for horizontal categories */
.pr-categories-slider-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    background: #fff !important;
    border: 1px solid #ececec !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    z-index: 10 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.2s !important;
    padding: 0 !important;
}

.pr-categories-slider-btn:hover {
    background: #f7f7f7 !important;
}

.pr-categories-slider-btn-left {
    left: -16px !important;
}

.pr-categories-slider-btn-right {
    right: -16px !important;
}

/* Show arrows class, managed by JS */
.pr-header-main-categories.has-scroll-left .pr-categories-slider-btn-left {
    opacity: 1 !important;
    visibility: visible !important;
}

.pr-header-main-categories.has-scroll-right .pr-categories-slider-btn-right {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Gradient fade overlays for premium feel */
.pr-header-main-categories::before,
.pr-header-main-categories::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 30px !important;
    pointer-events: none !important;
    z-index: 5 !important;
    opacity: 0 !important;
    transition: opacity 0.3s !important;
}

.pr-header-main-categories::before {
    left: 0 !important;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0)) !important;
}

.pr-header-main-categories::after {
    right: 0 !important;
    background: linear-gradient(to left, #fff, rgba(255,255,255,0)) !important;
}

.pr-header-main-categories.has-scroll-left::before {
    opacity: 1 !important;
}

.pr-header-main-categories.has-scroll-right::after {
    opacity: 1 !important;
}

/* Tablet styles (screens < 1200px) */
@media (max-width: 1199px) {
    .pr-header-main-categories>ul,
    .pr-header-main-categories>nav>ul,
    .pr-header-main-categories .oct-menu-horizontal {
        justify-content: flex-start !important;
        gap: 28px !important;
    }
}

/* Hide slider controls completely on PC (width >= 1200px) */
@media (min-width: 1200px) {
    .pr-categories-slider-btn {
        display: none !important;
    }
    .pr-header-main-categories::before,
    .pr-header-main-categories::after {
        display: none !important;
    }
}


/* =============================================
   CONTACT POPUP
   ============================================= */
.pr-contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.pr-contact-overlay.active {
    display: flex;
}

.pr-contact-dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: calc(100% - 32px);
    max-width: 440px;
    padding: 36px 28px 28px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.pr-contact-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #00A8E8;
    padding: 2px 6px;
}

.pr-contact-close:hover {
    color: #0090cc;
}

.pr-contact-title {
    font-size: 15px;
    color: #1e1e1e;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.55;
}

.pr-contact-input {
    display: block;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 13px 16px;
    font-size: 15px;
    color: #1e1e1e;
    background: #fff;
    margin-bottom: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.pr-contact-input:focus {
    border-color: #00A8E8;
}

.pr-contact-input::placeholder {
    color: #9da4ae;
}

.pr-contact-btn {
    display: block;
    width: 100%;
    background: #00A8E8;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.2s;
    font-family: inherit;
}

.pr-contact-btn:hover {
    background: #0090cc;
}

.pr-contact-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pr-contact-phones {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.pr-contact-phone-link {
    color: #E86934;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.pr-contact-phone-link:hover {
    color: #c9561d;
    text-decoration: underline;
}

.pr-contact-success-text {
    text-align: center;
    color: #1e1e1e;
    font-size: 16px;
    padding: 20px 0 8px;
}

.pr-mobile-menu-social {margin-top: 24px;}
/* =============================================
   5 in 1
   ============================================= */

/* ========================================================
   СТИЛИ ДЛЯ МОДУЛЯ ТОВАРОВ (SLIDER)
======================================================== */

.pr-module-title-arrow {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.pr-module-title-arrow:hover {
    opacity: 1;
    color: #00A8E8;
}

/* Обертка модуля */
.pr-module {
    overflow: visible !important;
    position: relative;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.pr-products-swiper-container {
    overflow: hidden;
    position: relative;
}

/* Сетка слайдов */
.pr-module .swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
}

.pr-module:not(.swiper-initialized) .swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
}

.pr-module .swiper-slide {
    display: flex !important;
    flex-direction: column;
    flex-shrink: 0;
    width: 80%;
    /* Мобильный вид */
}

/* Адаптивность ширины слайдов */
@media (min-width: 576px) {
    .pr-module .swiper-slide {
        width: 50% !important;
    }
}

@media (min-width: 768px) {
    .pr-module .swiper-slide {
        width: 33.333% !important;
    }
}

@media (min-width: 1200px) {
    .pr-module .swiper-slide {
        width: 20% !important;
    }
}

.pr-module.swiper-initialized .swiper-slide {
    width: auto !important;
}

/* Структура карточки */
.pr-module .pr-module-item {
    display: flex !important;
    flex-direction: column !important;
}

.pr-module .pr-module-item-inner {
    flex: 1 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box;
}

.pr-module .pr-module-item-bottom {
    flex: 1 !important;
}

.pr-module-item-inner {
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.pr-module-item-inner:hover {
    transform: translateY(-2px);
}

.pr-module-item-bottom {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.pr-module-item-price-box {
    margin-top: auto;
}

.pr-wishlist-floating {
    left: 0;
    top: 26px;
    z-index: 3;
}

/* ========================================================
   ЗАДАЧИ ПО ТЗ (ВИЗУАЛ)
======================================================== */

/* 1. Скрываем боковые стрелки */
.swiper-button-main {
    display: none !important;
}

/* 2. Прячем Wishlist по умолчанию, показываем при наведении */
.pr-module-item-inner .pr-wishlist-floating {
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
}

.pr-module-item-inner:hover .pr-wishlist-floating {
    opacity: 1;
    visibility: visible;
}

/* 3. Ограничиваем название товара ровно в 2 строки (даже если 1, резервируем место) */
.pr-module-item-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4 !important;
    min-height: 2.8em;
    /* 1.4 * 2 строки = 2.8 */
    margin-bottom: 8px !important;
}

/* 4. Ограничиваем категорию и артикул строго в 1 строку (резервируем место) */
.pr-module-item-category,
.pr-module-item-model {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    line-height: 1.4;
    min-height: 1.4em;
    margin-bottom: 4px !important;
}

/* Пагинация (точки) */
.swiper-pagination-main {
    bottom: 0 !important;
}

.swiper-pagination-main .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
}

.swiper-pagination-main .swiper-pagination-bullet-active {
    background: #00A8E8;
    width: 24px;
    border-radius: 5px;
}

.button {
    border-radius: 13px;
}

/* Header Icons Color */

.pr-header-open-account svg path,
.pr-header-buttons-item-icon svg path {
    stroke: #393939 !important;
}