:root {
    --primary-orange: #FF6B35;
    --secondary-orange: #FF9E1B;
    --dark-orange: #D45B12;
    --light-orange: #FFB347;
    --ultra-light-orange: #FFF3E6;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
}

.bg-orange-gradient {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
}

.navbar {
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
}

img.mega-menu-category-icon {
    max-width: 30px;
}

img.logo-image {
    max-width: 140px !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-orange) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--primary-orange) !important;
}

.form-check-input:checked {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.btn-orange {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
    transition: all 0.3s;
}

.btn-orange:hover {
    background-color: var(--dark-orange);
    border-color: var(--dark-orange);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-orange {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.btn-outline-orange:hover {
    background-color: var(--primary-orange);
    color: white;
}

.product-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.product-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-orange);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: none;
}

.product-card:hover .product-badge {
    display: block; /* Показываем бейдж при наведении на карточку */
}

.product-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 2.0rem;
}

.product-card .product-title, .product-card .product-title a {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.0rem;
    text-decoration: none;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
}

.discount-badge {
    background-color: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-left: 10px;
}

.product-image {
    border-radius: 10px;
    overflow: hidden;
    background-color: #f8f9fa;
    padding: 20px;
}

.product-image img {
    transition: transform 0.5s;
}

.product-image:hover img {
    transform: scale(1.05);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--ultra-light-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-card {
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.rating {
    color: var(--light-orange);
}

.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--light-orange);
}


.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    background-color: rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-orange);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

/* Индивидуальные цвета при наведении (опционально) */
.social-icon:nth-child(1):hover {
    background-color: #3b5998;
}

/* Facebook */
.social-icon:nth-child(2):hover {
    background-color: #e1306c;
}

/* Instagram */
.social-icon:nth-child(3):hover {
    background-color: #1da1f2;
}

/* Twitter */
.social-icon:nth-child(4):hover {
    background-color: #ff0000;
}

/* YouTube */
.social-icon:nth-child(5):hover {
    background-color: #0088cc;
}

/* Telegram */
.social-icon:nth-child(6):hover {
    background-color: #4a76a8;
}

/* VK */


.payment-methods {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-logo {
    height: 25px;
    width: auto;
    filter: grayscale(100%) contrast(60%);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.payment-logo:hover {
    filter: none;
    opacity: 1;
    transform: translateY(-2px);
}

/* Альтернативный вариант с цветными логотипами */
/*
.payment-logo {
    height: 25px;
    width: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.payment-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}
*/
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-orange);
    text-decoration: none;
}

.quantity-selector {
    width: 120px;
}

.tab-content {
    padding: 20px;
    background-color: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.nav-tabs .nav-link {
    color: #555;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    color: var(--primary-orange);
    background-color: white;
    border-bottom: 3px solid var(--primary-orange);
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.color-option:hover, .color-option.selected {
    border-color: var(--primary-orange);
    transform: scale(1.1);
}

.delivery-badge {
    background-color: var(--ultra-light-orange);
    color: var(--dark-orange);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.promo-banner {
    background-color: var(--ultra-light-orange);
    border-left: 4px solid var(--primary-orange);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

/* Остальные стили остаются такими же, добавляем только новые для хедера */

.top-header {
    /* background-color: #2c3e50;*/
    /*background: linear-gradient(135deg, #FF6B35, #FF9E1B);*/
    background: #2c3e50;
    color: #ecf0f1;
    padding: 12px 0;
    font-size: 0.9rem;
}

.top-header a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.top-header a:hover {
    color: var(--light-orange);
}

.header-divider {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 10px;
}

.main-header {
    background-color: #fffffff2;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-orange) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--primary-orange) !important;
}

.dropdown-mega-menu {
    position: static;
}

.dropdown-mega-menu .dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 20px;
    margin-top: 0;
    border-radius: 0;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mega-menu-content {
    display: flex;
    flex-wrap: wrap;
}

.mega-menu-column {
    flex: 1;
    min-width: 200px;
    padding: 0 15px;
}

.mega-menu-title {
    font-weight: 600;
    color: var(--primary-orange);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 8px;
}

.mega-menu-list a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
}

.mega-menu-list a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.search-form {
    position: relative;
    max-width: 400px;
}

.search-form .form-control {
    padding-right: 40px;
    border-radius: 20px;
}

.search-form .btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: transparent;
    border: none;
    color: #777;
}

.cart-count, .wishlist-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background-color: var(--primary-orange);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .top-header {
        display: none;
    }

    .dropdown-mega-menu .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        box-shadow: none;
        border: 1px solid #eee;
        margin: 5px 15px;
    }

    .mega-menu-content {
        display: block;
    }

    .mega-menu-column {
        padding: 0;
        margin-bottom: 15px;
    }
}


/*  стили для галлереи    */
.product-gallery {
    position: relative;
}

.thumbnail-item {
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.thumbnail-item.active {
    border-color: #FF6B35 !important;
    box-shadow: 0 0 0 2px #FF6B35;
}

.cursor-pointer {
    cursor: pointer;
}

.main-image-container {
    background-color: #f8f9fa;
    overflow: hidden;
    cursor: zoom-in;
}

/* Дополнительные стили для страницы категории */
.category-header {
    background: linear-gradient(135deg, #FF6B35, #FF9E1B);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.category-title {
    font-weight: 700;
    font-size: 2.5rem;
}

.category-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 800px;
}

.filter-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card-category {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
}

.product-card-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.product-img-container {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.product-img-container img, .category-img-container img {
    width: 100%;
    height: 100% !important;
    background: #fff;
    object-fit: contain;
    transition: transform 0.5s;
    border-bottom: 10px solid #2c3e50;

}

.product-card-category:hover .product-img-container img {
    transform: scale(1.05);
}

.product-img-container a {
    width: 100%;
    height: 100%;
}

.product-info {
    padding: 1.25rem;
}

.product-title-category, .product-title-category a {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1rem;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
}

.product-price-category {
    font-weight: 700;
    color: #FF6B35;
    font-size: 1.2rem;
}

.old-price-category {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-left: 5px;
}

.discount-badge-category {
    background-color: #28a745;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.75rem;
    margin-left: 10px;
}

.rating-category {
    color: #FFB347;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.pagination .page-item.active .page-link {
    background-color: #FF6B35;
    border-color: #FF6B35;
    color: #fff;
}

.pagination .page-link {
    color: #FF6B35;
}

.sorting-options .btn-outline-orange {
    border-color: #ddd;
    color: #555;
}

.sorting-options .btn-outline-orange:hover,
.sorting-options .btn-outline-orange.active {
    background-color: #FF6B35;
    border-color: #FF6B35;
    color: white;
}

/* Новые стили для улучшенного мега-меню */

.dropdown-mega-menu .dropdown-menu {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

.mega-menu-container {
    display: flex;
    flex-wrap: nowrap;
    max-width: 100vw;
}

.mega-menu-columns-wrapper {
    display: flex;
    flex: 1;
    min-width: 0;
}

.mega-menu-main-categories {
    width: 250px;
    background-color: #f8f9fa;
    border-right: 1px solid #eee;
    overflow-y: auto;
    max-height: 80vh;
}

.mega-menu-main-category {
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.mega-menu-main-category:hover,
.mega-menu-main-category.active {
    background-color: #fff;
    border-left-color: var(--primary-orange);
}

.mega-menu-main-category.active {
    font-weight: 600;
}

.mega-menu-subcategories {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 80vh;
    display: none;
}

.mega-menu-subcategories.active {
    display: block;
}

.mega-menu-subcategory {
    margin-bottom: 25px;
}

.mega-menu-subcategory-title {
    font-weight: 600;
    color: var(--primary-orange);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.mega-menu-subcategory-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.mega-menu-subcategory-link {
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 400;

}

.mega-menu-subcategory-link:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.mega-menu-subcategory-link .badge {
    font-size: 0.7em;
    font-weight: normal;
    background-color: #f0f0f0;
    color: #666;
}

/* Кастомный скроллбар */
.mega-menu-main-categories::-webkit-scrollbar,
.mega-menu-subcategories::-webkit-scrollbar,
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.mega-menu-main-categories::-webkit-scrollbar-track,
.mega-menu-subcategories::-webkit-scrollbar-track,
.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mega-menu-main-categories::-webkit-scrollbar-thumb,
.mega-menu-subcategories::-webkit-scrollbar-thumb,
.dropdown-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.mega-menu-main-categories::-webkit-scrollbar-thumb:hover,
.mega-menu-subcategories::-webkit-scrollbar-thumb:hover,
.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

@media (max-width: 991.98px) {
    .dropdown-mega-menu .dropdown-menu {
        max-height: none;
        overflow: visible;
    }

    .mega-menu-container {
        flex-direction: column;
    }

    .mega-menu-main-categories {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .mega-menu-subcategories {
        max-height: none;
    }

    .mega-menu-subcategories.active {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

img.mega-menu-category-icon.me-2 {
    max-width: 30px;
}

/*  range slider  */

.range-slider {
    position: relative;
    height: 40px;
}

.range-slider input[type=range] {
    position: absolute;
    left: 0;
    bottom: 12px;
    pointer-events: none;
    -webkit-appearance: none;
    width: 100%;
    background: none;
}

.range-slider input[type=range]::-webkit-slider-thumb {
    pointer-events: all;
    width: 16px;
    height: 16px;
    background: var(--primary-orange);
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
}

.range-slider input[type=range]::-moz-range-thumb {
    pointer-events: all;
    width: 16px;
    height: 16px;
    background: var(--primary-orange);
    border-radius: 50%;
    cursor: pointer;
}

.slider-track {
    position: absolute;
    height: 4px;
    background: var(--primary-orange);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.text-orange {
    color: var(--primary-orange);
}

/* Стили для показа субкатегорий */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.category-link {
    text-decoration: none;
    color: inherit;
}

.category-img-container {
    height: 180px;
    overflow: hidden;
}

/*.category-img-container img {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: cover;*/
/*    transition: transform 0.5s;*/
/*}*/

.category-card:hover .category-img-container img {
    transform: scale(1.05);
}

.category-info {
    padding: 20px;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}
h1.category-title {
    color: #fff;
}

.subcategories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subcategory-link {
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.subcategory-link:hover {
    color: var(--primary-orange);
    padding-left: 5px;
    border-bottom-color: var(--light-orange);
}

.subcategory-link .badge {
    font-size: 0.8em;
    font-weight: normal;
    background-color: #f0f0f0;
    color: #666;
}

.show-more {
    color: var(--primary-orange);
    font-weight: 500;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для блока "О компании" */
.about-company {
    position: relative;
    overflow: hidden;
}

.section-title {
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
    font-size: 2rem;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-orange);
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.about-image img {
    transition: transform 0.5s;
    width: 100%;
    height: auto;
}

.about-image:hover img {
    transform: scale(1.03);
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
}

.category-list {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
}

.category-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    list-style: none;
}

.category-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary-orange);
    border-radius: 50%;
}

.advantages-box {
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.advantage-item {
    display: flex;
    align-items: flex-start;
}

.partnership-info {
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.benefit-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-orange);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--ultra-light-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.benefit-card h4 {
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.benefit-card ul {
    padding-left: 20px;
}

.benefit-card li {
    margin-bottom: 8px;
}

.contact-card, .order-info {
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.phone-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.phone-list li {
    margin-bottom: 5px;
}

.phone-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.phone-list a:hover {
    color: var(--primary-orange);
}

.method-item {
    display: flex;
    gap: 15px;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--ultra-light-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.method-content h4 {
    color: #2c3e50;
}

@media (max-width: 768px) {
    .category-list {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для главной страницы */
.home-page {
    overflow-x: hidden;
}

/*!* Герой-слайдер *!*/
/*.hero-slider .carousel {*/
/*    max-height: 600px;*/
/*    overflow: hidden;*/
/*}*/

/*.hero-slider .carousel-item {*/
/*    height: 600px;*/
/*}*/

/*.hero-slider .carousel-item img {*/
/*    object-fit: cover;*/
/*    height: 100%;*/
/*}*/

/*.hero-slider .carousel-caption {*/
/*    bottom: 30%;*/
/*    text-align: left;*/
/*    left: 10%;*/
/*    right: 10%;*/
/*}*/

/*.hero-slider .carousel-caption h2 {*/
/*    font-size: 3rem;*/
/*    font-weight: 700;*/
/*    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);*/
/*}*/

/*.hero-slider .carousel-caption p {*/
/*    font-size: 1.5rem;*/
/*    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);*/
/*    margin-bottom: 2rem;*/
/*}*/

/* Преимущества */
.advantage-card {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background-color: var(--ultra-light-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

/* Категории */
.category-card {
    display: block;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-img {
    height: 180px;
    overflow: hidden;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    border-bottom: 10px solid #2c3e50;
}

.category-card:hover .category-img img {
    transform: scale(1.05);
}

.category-info {
    padding: 20px 10px;
}

.category-info h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* Баннер акции */
.promo-banner {
    background-color: var(--ultra-light-orange);
}

.banner-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.banner-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Новости */
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-img {
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body {
    padding: 20px;
}

.news-date {
    font-size: 0.9rem;
}

.news-title {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #333;
}

.news-text {
    color: #666;
    margin-bottom: 15px;
}

/* Подписка */
.newsletter {
    background-color: #2c3e50;
    color: white;
}

.newsletter-form .form-control {
    height: 50px;
    border-radius: 30px 0 0 30px;
}

.newsletter-form .btn {
    border-radius: 0 30px 30px 0;
    height: 50px;
    padding: 0 25px;
}

@media (max-width: 768px) {
    .hero-slider .carousel-caption h2 {
        font-size: 2rem;
    }

    .hero-slider .carousel-caption p {
        font-size: 1.1rem;
    }

    .banner-title {
        font-size: 1.8rem;
    }
}

.wpc-filters-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.wpc-filter-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    font-size: 1.25rem;
}

.wpc-term-item-content-wrapper a {
    color: #2c3e50;
}


/* Стилизация чекбокса */
.wpc-filters-main-wrap li.wpc-term-item input[type=checkbox], .wpc-filters-main-wrap li.wpc-term-item input[type=radio] {
    outline: 0;
    margin-left: 1px;
    margin-right: 2px;
    margin-bottom: 0;
    min-width: 20px;
}
.wpc-filters-main-wrap ul.children {
    list-style: none;
    margin-left: 0;
}
/* Стилизация чекбокса */
.wpc-checkbox-item input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 0.25rem;
    outline: none;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.wpc-checkbox-item input[type="checkbox"]:checked {
    background-color: #FF6B35;
    border-color: #FF6B35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8.8 17.8l-5.6-5.6 1.4-1.4 4.2 4.2 8.6-8.6 1.4 1.4z' stroke='white' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Стилизация при наведении */
.wpc-checkbox-item input[type="checkbox"]:hover {
    border-color: #999;
}

.wpc-checkbox-item input[type="checkbox"]:checked:hover {
    background-color: #E55A2B;
    border-color: #E55A2B;

}

.wpc-filters-main-wrap input[type=checkbox]:after {
    border: none !important;
}

.wpc-filters-range-wrapper input[type=number] {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.wpc-filters-range-inputs .ui-slider-horizontal .ui-slider-handle{
    background-color: #E55A2B !important;
}


.category-hover-text{
    font-size: 0.8rem;
}
.category-hover-text:hover {
    color: #fd7e14 !important;

}

/* woocommerce gallery  */
/* Исправляем размеры миниатюр */
.product-gallery-custom .flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding: 0;
    list-style: none;
}

.product-gallery-custom .flex-control-thumbs li {
    flex: 0 0 calc(10% - 8px);
    margin: 0 !important;
}

.product-gallery-custom .flex-control-thumbs img {
    width: 100%;
    height: auto;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}

.product-gallery-custom .flex-control-thumbs li img:hover,
.product-gallery-custom .flex-control-thumbs li img.flex-active {
    border-color: #007bff;
}

/* Убираем отступы WooCommerce */
.product-gallery-custom .woocommerce-product-gallery {
    margin-bottom: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-gallery-custom .flex-control-thumbs li {
        flex: 0 0 calc(25% - 8px);
    }
}

@media (max-width: 576px) {
    .product-gallery-custom .flex-control-thumbs li {
        flex: 0 0 calc(20% - 8px);
    }
}

/*   */
/* ===== МОБИЛЬНАЯ ВЕРСИЯ МЕГА-МЕНЮ ===== */
@media (max-width: 991px) {

    /* Контейнер подкатегорий — делаем скролл */
    .mega-menu-columns-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        max-height: 50vh; /* чтобы не вылезало за экран */
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 8px; /* немного места под скроллбар */
    }

    /* Убираем раскрытие вложенных подкатегорий */
    .mega-menu-subcategory-links  {
        display: none;
    }

    .mega-menu-subcategory-links a:hover {
        background: #f8f9fa;
    }

    /* Если есть вложенные уровни — скрыть */
    .mega-menu-subcategory-links .mega-menu-subcategory-link .badge {
        float: right;
        color: #777;
    }

    /* Скрыть "второй уровень" (вложенные подкатегории) */
    .mega-menu-subcategory-links .mega-menu-subcategory-links {
        display: none !important;
    }

    /* Основные колонки и категории — делаем одну колонку */
    .mega-menu-container {
        display: block !important;
    }

    .mega-menu-main-categories {
        display: none; /* скрываем левую колонку */
    }

    .mega-menu-subcategories {
        display: block !important;
        padding: 0 2px;
    }
    .mega-menu-subcategory {
         margin-bottom: 0;
    }

    .mega-menu-subcategory-title a {
        margin-top: 0;
        /*border-bottom: 2px solid #FF6B35;*/
        padding-bottom: 0;
        color: #777;
        text-decoration: none;
        font-size: 0.8rem;
    }
    .navbar-toggler{
        margin-left: 20px;
    }
}
/* ======== ОТКЛЮЧАЕМ СКРОЛЛ ОСНОВНОГО КОНТЕНТА ======== */
body.menu-open {
    overflow: hidden;
    height: 100vh;
    touch-action: none; /* блокирует свайп прокрутки на iOS */
}


/* ======== Отступ списков в фильтре ======== */
ul.children {
    margin-left: 5px !important;
    padding-left: 10px;
    font-size: .9rem;
}

/* ======== Современный слайдер - картинка + текст ======== */
.carousel-inner{
    border-radius: 32px;
}
.hero-slider {
    padding: 60px 0;
    background: #f8f9fa;
}

.hero-slider .slide-container {
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 500px;
    padding: 40px;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Картинка */
.hero-slider .slide-image {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.hero-slider .slide-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero-slider .carousel-item:hover .slide-image img {
    transform: scale(1.02);
}

/* Текстовая часть */
.hero-slider .slide-content {
    flex: 1;
    padding: 20px;
}

.hero-slider .slide-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a2e;
    line-height: 1.2;
}

.hero-slider .slide-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Кнопка */
.hero-slider .btn-primary {
    /*background: #4361ee;*/
    background: #2c3e50;
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-slider .btn-primary:hover {
    /*background: #3a0ca3;*/
    background: rgba(44, 62, 80, 0.82);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67,97,238,0.3);
}

/* Стрелки */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hero-slider .carousel-control-prev {
    left: -20px;
}

.hero-slider .carousel-control-next {
    right: -20px;
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    background-size: 60%;
    filter: invert(1);
}

/* Точки */
.hero-slider .carousel-indicators {
    bottom: -40px;
    gap: 10px;
}

.hero-slider .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0;
}

.hero-slider .carousel-indicators button.active {
    width: 24px;
    border-radius: 4px;
    background-color: #2c3e50;
}

/* Анимация */
.hero-slider .carousel-item .slide-content h2 {
    animation: fadeInRight 0.6s ease-out;
}
.hero-slider .carousel-item .slide-content p {
    animation: fadeInRight 0.6s ease-out 0.1s both;
}
.hero-slider .carousel-item .slide-content .btn {
    animation: fadeInRight 0.6s ease-out 0.2s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-slider .slide-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        padding: 30px;
    }

    .hero-slider .slide-content h2 {
        font-size: 2rem;
    }

    .hero-slider .slide-image img {
        height: 300px;
    }

    .hero-slider .carousel-control-prev {
        left: 0;
    }
    .hero-slider .carousel-control-next {
        right: 0;
    }
}