/* Основные стили */
:root {
    --blue: #007bff;
    --cian: #08457e;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --text-bg-color: #f0f0f0;
    --text-color: #333;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body {
    font-family: var(--font-family-sans-serif);
    margin: 0;
    padding: 0;
    background-color: var(--white);
    color: var(--dark);
    box-sizing: border-box;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    background-color: var(--light);
}

*, *::before, *::after {
    box-sizing: inherit;
}

nav {
    display: flex;
    height: 70px;
    justify-content: center;
    background-color: var(--cian);
    padding: 3px 20px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 1px;
    margin: 0 auto;
}

/* Стили для шапки сайта */
header.shapka {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0px;
    padding-top: 20px;
    background-color: var(--light);
    color: var(--white);
    border-bottom: 1px solid var(--light);
    max-width: 1200px;
    margin: 0 auto;
}

.close-page {
    display: none;
    cursor: pointer;
    background: var(--dark);
    color: #999;
    border: none;
    font-size: 24px;
    position: fixed;
    top: 19px;
    right: 10px;
    z-index: 10000;
}

main {
/*     margin-top: -18px; */
    padding-top: 0px;
}

.three-column-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 22px;
}

.grid-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Стили для каждого блока - ВОССТАНАВЛИВАЕМ ОРИГИНАЛЬНЫЕ */
.grid-item {
    /* display: flex; */
    background-color: var(--cian);
    /* border: 1px solid #ccc; */
    border-radius: 8px;
    /* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); */
    /* overflow: hidden; */
    width: 100%;
}

#dcomp-popular-categories a,
#dcomp-popular-categories a:visited {
    color: #08457e !important;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Стили для блока с изображением */
.grid-image {
    flex: 0 0 150px;
    background-color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Стили для блока с текстом */
.grid-text {
    flex: 1;
    background-color: var(--cian);
    padding: 20px;
    color: white;
    font-family: var(--font-family-sans-serif);
    font-size: 15px;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
    margin-top: -2px;
}

.container1 {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header_top h1 {
    margin: 0;
    font-size: 24px;
}

.logo-section {
    display: flex;
    align-items: flex-start;
}

.logo {
    width: 190px;
    height: auto;
    margin-right: 20px;
    padding-bottom: 0px;
    margin-top: -10px;
}

.header-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.text-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.new-text {
    font-size: 18px;
    font-weight: 500;
    font-family: var(--font-family-sans-serif);
    color: #343a40;
    margin: 0 0 10px 0;
    margin-left: 5px;
}

.text-gray {
    font-size: 13px;
    font-family: Geneva, Arial, Helvetica, sans-serif;
    color: #343a40;
    margin-right: 20px;
}

.text-gray p {
    margin: 0;
}

.links-section {
    display: flex;
    gap: 20px;
    padding: 10px;
    background: linear-gradient(235deg, #ffffff, #f1f1f1);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.links-section .list-top {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-section .list-top li {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.links-section .list-top li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.links-section .list-top a {
    color: #333;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
}

.links-section .list-top a:hover {
    color: #007bff;
}

.links-section .list-top i {
    font-size: 18px;
    color: #007bff;
    flex-direction: row;
}

.links-section .list-top .link-description {
    font-size: 12px;
    color: #666;
    text-align: left;
}

.menu-toggle {
    display: none;
    background-color: var(--cian);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 4px;
}

.menu {
    font-family: var(--font-family-sans-serif);
    list-style: none;
    font-size: 16px;
	font-weight: 500;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu li {
    position: relative;
}

.menu li a {
    display: block;
    padding: 15px 15px;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s;
}

/* СТАНЕТ (ТОЛЬКО ссылки верхнего уровня): */
.menu > li > a {
    display: block;
    padding: 20px 20px;  /* ← ТОЛЬКО для "Главная", "Направления", "Контакты" */
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s;
}

.menu li a:hover {
    background-color: #2980b9;
}

.submenu {
    display: none;
    z-index: 20;
    position: absolute;
    top: 100%;
    background-color: #033066 !important; /* ← !important */
    list-style: none;
    padding: 0 !important;                /* ← Убираем padding */
    margin: 0;
    min-width: 300px;                     /* ← вместо width у li */
   /*  border: 1px solid #2980b9;            /* ← Добавляем рамку */
    /* border-radius: 4px;                   /* ← Скругляем углы */
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* ← Тень как у subsubmenu */
}

.submenu li {
    width: 100%;                          /* ← Занимает всю ширину */
    font-weight: 400;
    margin: 0 !important;                 /* ← Убираем отступы */
    padding: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* ← Разделитель */
}

.submenu li:last-child {
    border-bottom: none !important;       /* ← У последнего нет разделителя */
}

/* КЛЮЧЕВОЕ: стили для ссылок в submenu */
.submenu > li > a {
    display: flex !important;
    align-items: center !important;
    padding: 14px 20px !important;         /* ← УВЕЛИЧИЛИ отступы (было 8px 15px) */
    min-height: 45px !important;           /* ← УВЕЛИЧИЛИ высоту (было height: 35px) */
    color: white !important;
    background: #033066 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    white-space: nowrap;
    border-left: none !important;          /* ← УБРАЛИ левую рамку если она есть */
    box-sizing: border-box !important;     /* ← Чтобы padding учитывался в высоте */
}



/* При наведении на пункт в submenu */
.submenu > li > a:hover {
    background: #2980b9 !important;       /* ← Голубой фон при hover */
    color: white !important;
    padding-left: 20px !important;        /* ← Сдвиг текста */
}

.menu li:hover > .submenu {
    display: block;
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.list-first {
    color: var(--white);
    font-family: var(--Segoe UI);
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 35px;
    text-indent: 0px !important;
    text-align: start !important;
    text-align-last: auto !important;
}

.list {
    font-family: var(--font-family-sans-serif);
    color: var(--white);
    font-size: 15px;
    margin-top: 5px;
    margin-bottom: 8px;
    text-indent: 0px !important;
    text-align: start !important;
    text-align-last: auto !important;
}

.product-card {
    background-color: var(--cian);
    color: white;
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card h1 {
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.product-card .list {
    list-style-type: none;
    padding: 0;
}

.product-card .list li {
	font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    margin-bottom: 10px;
    /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 14px;
    color: var(--gray);
}

.product-header {
    padding-left: 12px;
}

.description-block {
    padding-left: 1px;
}

.top-split {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 5px;
    margin-left: 3px;
    margin-right: 2px;
}

.top-split > div {
    flex: 1 1 45%;
    padding: 20px;
    border-radius: 1px;
    background-color: var(--white);
    min-height: 200px;
}

.product-card.animate__animated.animate__fadeInUp.image-slider {
    border: 2px solid #ccc;
    padding: 20px;
    transition: all 0.3s ease;
}

.product-card.animate__animated.animate__fadeInUp.image-slider.blue-bg {
    background-color: #08457e;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.product-card.animate__animated.animate__fadeInUp.image-slider.white-bg {
    background-color: white;
    color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.download-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.download-link:hover {
    background-color: var(--blue);
}

.input-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 15px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    text-align: center;
    font-weight: 600;
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 24px;
}


.contact-form input,
.contact-form textarea {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 18px;
    border: 1px solid #d1d5db; /* светло-серая рамка */
    border-radius: 6px;
    font-size: 16px;
    color: #333;
    background-color: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0066cc; /* синий фокус */
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    background-color: var(--cian); /* фирменный синий */
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
}


.contact-form button:hover {
    background-color: #004499; /* тёмно-синий при наведении */
    transform: translateY(-1px);
}

.contact-form button:active {
    transform: translateY(0);
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0066cc;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chat-bot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.chat-bot:hover {
    background-color: var(--blue);
}

.chat-bot.animate__animated.animate__bounceInUp {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: var(--cian);
    width: 50px;
    height: 50px;
    border-radius: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.chat-bot.animate__animated.animate__bounceInUp i {
    color: #ffffff;
    font-size: 24px;
}

.chat-modal {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: #f5f5f5;
    border: 1px solid var(--gray);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.chat-modal-content {
    padding: 20px;
}

.chat-modal-content h4 {
    margin-top: 0;
    color: #333;
}

.close-chat {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 32px;
    color: var(--gray);
}

#chatForm input,
#chatForm textarea {
    width: 100%;
    padding: 7px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

#chatForm button {
    width: 100%;
    padding: 10px;
    background-color: var(--cian);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#chatForm button:hover {
    background-color: var(--cian);
}

#chatStatus {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* Левый блок (статика) - синий фон, белые буквы, без слайдера */



.product-split {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.product-split > div {
    flex: 1 1 45%;
    border: 1px solid var(--gray);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    background-color: var(--white);
    min-height: 200px;
}

.narrow-split {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.narrow-split > div {
    flex: 1 1 20%;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--white);
    min-height: 100px;
}

.image-slider {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
}

.image-slider img {
    display: none;
    width: 100%;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.image-slider img.active {
    display: block;
    opacity: 1;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.footer {
    width: 100%;
    padding: 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.social-links i {
    font-size: 18px;
}

.footer {
    background-color: var(--cian);
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.footer p,
.social-links a {
    color: #ffffff;
}

.social-links a:hover {
    color: #007bff;
}

.related-categories, .external-info {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.related-categories h3, .external-info h3 {
    margin-top: 0;
    color: #08457e;
    font-size: 1.2em;
}

.related-categories ul {
    padding-left: 20px;
}

.related-categories li {
    margin-bottom: 8px;
}

.external-info {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #08457e;
}

.external-info h3 {
    color: #08457e;
    margin-top: 0;
    font-size: 1.2em;
}

.source-item {
    margin-bottom: 15px;
}

.source-item h4 {
    margin-bottom: 5px;
    font-size: 1em;
}

.wikipedia-content {
    background-color: #f0f7ff;
}

.google-content {
    background-color: #fff8f0;
}

/* ========== СТИЛИ ИЗ ШАБЛОНА (ТОЛЬКО ДЛЯ СПЕЦИФИЧЕСКИХ ЭЛЕМЕНТОВ) ========== */

/* Основной контент с сайдбаром */
.main-content-with-sidebar {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px 0 3px;
}

/* Левый сайдбар */
.left-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 3px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: fit-content;
    border: 1px solid #e1e8ed;
}

.sidebar-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-section h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 8px;
}

.sidebar-list a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.sidebar-list a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* Основной контент */
.main-content {
    flex: 1;
    min-width: 0;
}

/* Сетка контента */
/* Сетка товаров — ОБЯЗАТЕЛЬНОЕ ПРАВИЛО */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    margin: 20px 0;
}

/* Макет товара */
.product-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}



.product-image-column {
    background: white;
    /* border-radius: 4px; */
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 400px; /* ОГРАНИЧЕНИЕ ШИРИНЫ */
    width: 100%; /* Занимает всю доступную ширину до max-width */
    margin: 0 auto; /* Центрирование */
    min-height: 300px;
    box-sizing: border-box; /* Чтобы padding не увеличивал ширину */
}

/* Контейнер для изображения внутри колонки */
.product-image-container {
    background: white;
    border-radius: 4px;
    padding: 20px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 400px; /* Ограничиваем максимальную ширину */
    margin: 0 auto; /* Центрируем */
    min-height: 300px;
    height: auto;
}

/* Для изображения внутри */


/* Само изображение */
.product-image img.responsive-img {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* border: 1px solid #eee;
    border-radius: 4px;
    padding: 4px;
    background: #fff; */
}


.product-info-column {
    flex: 1;
}

.product-image {
    max-width: 100%;
    overflow: hidden;
}

.responsive-img {
    max-width: 100%;
    padding-left: 6px;
    height: auto;
    display: block;
}

/* === БЛОК КОРЗИНЫ И КНОПОК - ИСПРАВЛЕННЫЙ === */
.cart-section {
    text-align: center;
    align-items: center;
    margin: 30px 0;
}


/* Контейнер для кнопок добавления в корзину */
.add-to-cart-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

/* Селектор количества */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    justify-content: center;
    max-width: 200px;
    width: 100%;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #ffffff;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}


.quantity-btn:hover {
    background: #f8f9fa;
    border-color: #0066cc;
}



.quantity-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    padding: 0;
    margin: 0;
}

/* КНОПКА "В КОРЗИНУ" - ИСПРАВЛЕННАЯ */
.add-to-cart-btn {
    height: 36px;
    min-width: 200px;
    padding: 0 16px;
    background: #0066cc;
    color: #fff;
    border: 1px solid #0066cc;
    border-radius: 2px;
    font-family: var(--font-family-sans-serif);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: #0055aa;
    border-color: #0055aa;
}

.price-request-button {
    margin: -15px 0;
}

/* КНОПКА ЗАПРОСА ЦЕНЫ */
.price-request-btn {
    min-width: 200px;
    height: 36px;
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 8px !important;
    vertical-align: middle !important;
    line-height: normal !important;
    background: white;
    color: #0066cc;
    border: 1px solid #0066cc;
    border-radius: 2px;
    font-family: var(--font-family-sans-serif);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 16px;
}

.price-request-btn:hover {
    background: #0066cc;
    color: white;
}

/* Описание */
.description-content {
    padding: 20px;
    margin: 15px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e1e8ed;
}

.description-content h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

/* Модальное окно */
.order-modal-content {
    max-height: 90vh !important;
    overflow-y: auto !important;
}

#orderForm {
    max-height: calc(90vh - 100px) !important;
    overflow-y: auto !important;
}

/* Корзина в навигации - ИЗМЕНЕНО: белая иконка */
.cart-nav-item {
    margin-left: auto;
}

.cart-nav-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: white;
    padding: 8px 16px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.cart-nav-item a:hover {
    background: rgba(255, 255, 255, 0.1);
}

#cartCounter {
    background: #0066cc;
    color: white;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    text-align: center;
    display: none;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Мобильная корзина - ИЗМЕНЕНО: белая иконка */
.mobile-cart-header {
    display: none;
}

.mobile-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-cart-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    display: none;
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    margin: 10px 0;
    font-size: 24px;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

/* Исправление шрифтов в сайдбаре */
.left-sidebar .sidebar-section h3,
.left-sidebar .sidebar-list a,
.left-sidebar .news-date,
.left-sidebar .news-title {
    font-family: var(--font-family-sans-serif) !important;
}

.left-sidebar .sidebar-section h3 {
    color: #2c3e50 !important;
}

.left-sidebar .sidebar-list a {
    color: #3498db !important;
}

.left-sidebar .news-date {
    color: #7f8c8d !important;
}

.left-sidebar .news-title {
    color: #2c3e50 !important;
}


/* Специфические стили для новостей в сайдбаре */
.left-sidebar .news-item {
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-family: var(--font-family-sans-serif) !important;
}

.left-sidebar .news-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

.left-sidebar .news-date {
    font-size: 12px !important;
    color: #7f8c8d !important;
    margin-bottom: 5px !important;
    font-family: var(--font-family-sans-serif) !important;
}

.left-sidebar .news-title {
    font-size: 14px !important;
    color: #2c3e50 !important;
    line-height: 1.4 !important;
    font-family: var(--font-family-sans-serif) !important;
}

/* Иконки в заголовках сайдбара */
.left-sidebar .sidebar-section h3 i {
    margin-right: 8px !important;
    width: 20px !important;
    text-align: center !important;
}

/* Общие стили для всего сайдбара */
.left-sidebar .sidebar-section h3 {
    font-family: var(--font-family-sans-serif) !important;
    color: #2c3e50 !important;
}

.left-sidebar .sidebar-list a {
    font-family: var(--font-family-sans-serif) !important;
    color: #3498db !important;
}

.cart-icon {
    color: #ffffff !important;
    filter: brightness(0) invert(1) !important;
    display: inline-block;
}

/* Меняем галочку на стрелочку в меню */
.menu li.has-submenu > a .fa-chevron-down::before {
    content: "\f0d7" !important; /* стрелка вниз */
    /* или content: "\f107" !important; для другой стрелки */
}

/* Левый блок - ТОЛЬКО синий с текстом */
/* Используйте это (добавьте .top-split в начале): */
.top-split .left-static-block {
    background-color: #08457e !important; /* Используйте !important для надёжности */
    color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: var(--font-family-sans-serif);
}

.left-static-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.left-static-block .list-first {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 35px;
}

.left-static-block .list {
    color: white;
    font-size: 15px;
    margin-top: 5px;
    margin-bottom: 8px;
    padding-left: 20px; /* Отступ для маркеров списка */
}

.left-static-block .list li {
    margin-bottom: 10px;
    list-style-type: disc; /* Добавляем точки у списка */
}

.left-static-block .list a {
    color: white;
    text-decoration: none;
}

.left-static-block .list a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

/* ===== ОСНОВНЫЕ СТИЛИ ГАЛЕРЕИ ===== */


/* Контейнер галереи товара */
/* Основной контейнер галереи */
.product-gallery {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Контейнер слайдов — должен растягиваться */
.gallery-main {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Сохраняем квадратную пропорцию */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    /* border: 1px solid #eee; */
    /* border-radius: 8px; */
    overflow: hidden;
}

/* Основное изображение — растягиваем */
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Сохраняем пропорции */
    display: none;
}

/* Показываем только активный слайд */
.gallery-main img.active {
    display: block;
}

/* Отдельный слайд изображения */
.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* сохраняет пропорции изображения */
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-in; /* курсор-лупа для увеличения */
    background: #fff;
    margin: auto; /* центрирование */
}

/* Активный слайд (видимый) */
.gallery-slide.active {
    opacity: 1;
}

/* Кнопки навигации ВНУТРИ галереи */
.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 0;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.gallery-prev:hover, .gallery-next:hover {
    background: #f5f5f5;
    border-color: #999;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

/* Контейнер для миниатюр */
.gallery-thumbs {
    display: flex;
    gap: 5px;
    justify-content: center;
    padding: 5px 0;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
    flex-wrap: wrap;
    min-height: 70px;
    transition: all 0.3s ease;
}

/* Отдельная миниатюра */
.gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    border: 1px solid #ddd;
    background: #fff;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.gallery-thumb:hover {
    opacity: 0.8;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #333;
}

/* ===== МОДАЛЬНОЕ ОКНО УВЕЛИЧЕНИЯ ===== */

/* Фон модального окна (затемнение) */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Активное модальное окно */
.gallery-modal.active {
    display: flex;
}

/* Контейнер для изображения в модальном окне */
.gallery-modal-image-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Само увеличенное изображение */
.gallery-modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #fff;
    border: 1px solid #ddd;
    display: block;
}

/* ===== КРЕСТИК ЗАКРЫТИЯ ===== */

/* Крестик для ДЕСКТОПА */
.gallery-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #fff;
    border: 2px solid #333;
    color: #333;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    z-index: 10002;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.gallery-modal-close:hover {
    background: #f8f8f8;
    transform: scale(1.1);
}

/* Стрелки навигации в МОДАЛЬНОМ окне */
.gallery-modal-prev, .gallery-modal-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    color: #333;
    padding: 0;
    cursor: pointer;
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10001;
    border-radius: 50%;
}

.gallery-modal-prev:hover, .gallery-modal-next:hover {
    background: #fff;
}

.gallery-modal-prev { left: 20px; }
.gallery-modal-next { right: 20px; }

/* ===== СПЕЦИАЛЬНЫЕ СОСТОЯНИЯ ГАЛЕРЕИ ===== */

/* Когда только ОДНО изображение */
.gallery-single .gallery-prev,
.gallery-single .gallery-next,
.gallery-single .gallery-thumbs {
    display: none !important;
}

/* Когда только одно изображение - оно всегда видимо */
.gallery-single .gallery-slide {
    cursor: zoom-in;
    position: relative !important;
    opacity: 1 !important;
}

/* Скрываем "битые" или отсутствующие изображения */
.gallery-slide:not([src]), 
.gallery-slide[src=""],
.gallery-slide[src*="undefined"] {
    display: none !important;
}

/* ===== ИСПРАВЛЕНИЯ ДЛЯ СОВМЕСТИМОСТИ ===== */

/* Убираем рамку у галереи внутри контейнера изображения */
.product-image-container .product-gallery {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* Убираем рамку у основного блока галереи */
.product-image-container .gallery-main {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Гарантируем что изображения вписываются в контейнер */
.product-image-container img.product-main-image,
.product-image-container .gallery-slide {
    max-height: 400px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

/* Уменьшаем дополнительные изображения в модальном окне (только когда их несколько) */
.gallery-modal:not(.single-image) .gallery-modal-image {
    max-width: 70% !important;  /* Уменьшаем до 70% (примерно в 1.5 раза) */
    max-height: 70% !important; /* Уменьшаем до 70% (примерно в 1.5 раза) */
}

/* Оставляем одно изображение в полном размере */
.gallery-modal.single-image .gallery-modal-image {
    max-width: 90% !important;
    max-height: 90% !important;
}

	/* ===== БЛОК ЦЕНЫ И НАЛИЧИЯ НА ДЕТАЛЬНОЙ СТРАНИЦЕ ===== */
.product-pricing {
    margin: 20px 0;
	padding-left: 12px;
}

/* Бейдж "В наличии" на детальной странице */
.availability-badge {
    background-color: #27ae60;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(39, 174, 96, 0.3);
    /* УБИРАЕМ АБСОЛЮТНОЕ ПОЗИЦИОНИРОВАНИЕ! */
    position: static;
    padding-left: 12px;
    transform: none;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ТОВАРА =====закоментил так как меняют страницы каталога */

/* .product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.product-image {
    text-align: center;
    margin-bottom: 30px;
}

.product-image img {
    max-width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 10px;
    background: white;
}

.product-header h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 28px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.price-block {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.price-label {
    font-weight: bold;
    color: #2c3e50;
    margin-right: 10px;
}

.price-value {
    color: #e74c3c;
    font-size: 24px;
    font-weight: bold;
}

.price-request {
    color: #7f8c8d;
    font-size: 18px;
}

.delivery-time {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.delivery-label {
    font-weight: bold;
    color: #2c3e50;
    margin-right: 10px;
}

.product-description {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
    line-height: 1.7;
    font-size: 16px;
}

/* Кнопка "Подробнее" */
/* .details-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid #3498db;
}

.details-btn:hover {
    background: white;
    color: #3498db;
} */


/* ===== СТИЛИ ДЛЯ КАТЕГОРИЙ И ТОВАРОВ2- проверяю ===== */

.category-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    /* border-bottom: 2px solid #3498db; */
}

.category-title {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 32px;
}

.category-subtitle {
    color: #7f8c8d;
    font-size: 18px;
}

.subcategories-grid,
.content-grid {
    display: grid;
    gap: 25px;
    margin: 30px 0;
}

.subcategories-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.content-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦ КАТЕГОРИЙ С ПОДКАТЕГОРИЯМИ С КВАДРАТНЫМИ БЛОКАМИ ===== */

.subcategories-grid {
    display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
    /* Центрируем сетку */
    /* justify-content: center; */
}

.subcategory-item {
    background: white; /*  фон  */
    border: 1px solid #e0e0e0; /* Нейтральная серая рамка */
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    max-width: 320px;
    margin: 0 auto; /* Центрируем каждый блок */
}

.subcategory-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: #0066cc; /* Акцентный цвет при наведении */
}

/* Иконка папки — можно скрыть или заменить */
.subcategory-icon {
    font-size: 42px;
    color: #08457e;
    margin-bottom: 16px;
    /* Если не нужна — раскомментируйте строку ниже */
    /* display: none; */
}


/* Текст подкатегории */
.subcategory-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px;
    line-height: 1.4;
}

.subcategory-text p {
    color: #6c757d;
    font-size: 14px;
    margin: 0 0 16px;
}

/* Кнопка "Смотреть все товары" */
.subcategory-btn {
    display: inline-block;
    padding: 10px 20px;
    /* background: #0066cc; /* Основной акцентный цвет */ 
	background: #08457e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
    border: none;
}

.subcategory-btn:hover {
    background: #0055aa;
    color: white;
}

.grid-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: white;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #08457e;
}

.grid-image {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.grid-image img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
}

.grid-text h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    color: #2c3e50;
    line-height: 1.4;
    min-height: 50px;
}


/* Цена */
.price-text {
    color: #e74c3c;
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

.price-text.request {
    color: #7f8c8d;
    font-size: 16px;
    font-weight: normal;
}

/* Кнопки */
.details-btn,
.subcategory-btn {
    display: inline-block;
    height: 30px;
    padding: 0 20px;           /* убрали вертикальные отступы */
    line-height: 30px;         /* ← ключевое свойство! */
    background: white;
    font-size: 14px;
    font-weight: 400;
    color: #08457e;
    text-decoration: none;
    border: 1px solid #08457e;
    border-radius: 2px;
    transition: background 0.3s;
}

.details-btn:hover,
.subcategory-btn:hover {
    background: #2980b9;
}

/* Страница товара */
.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.product-image {
    text-align: center;
    margin-bottom: 30px;
}

.product-image img {
    max-width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 8px;
}

.product-header h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 28px;
    /* border-bottom: 2px solid #3498db; */
    padding-bottom: 10px;
}



/* ===== ВЫПАДАЮЩЕЕ МЕНЮ ПОДКАТЕГОРИЙ ===== */
.has-subsubmenu {
    position: relative;
}

/* Пункт в подменю, у которого ЕСТЬ подпункты */
.has-subsubmenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white !important;
    background: #033066 !important;  /* ← Синий фон */
    padding: 10px 15px !important;
    text-decoration: none !important;
    height: 40px;                    /* ← Фиксированная высота */
}

.has-subsubmenu > a .fa-chevron-right {
    margin-left: 10px;
    font-size: 12px;
}

/* САМО подподменю (список) */
.subsubmenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    background: #033066 !important;  /* ← Фон всего списка */
    /* border: 1px solid #2980b9; */
    /* border-radius: 4px; */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 0 !important;           /* ← МЕНЯЕМ: было 5px 0 */
    list-style: none !important;
}

/* Показываем при наведении */
.has-subsubmenu:hover .subsubmenu {
    display: block;
    /* color: #2980b9 ← УДАЛИТЬ! Не работает для списка */
}

/* При наведении на САМ пункт */
.has-subsubmenu:hover > a {
    color: #2980b9 !important;       /* ← Текст становится голубее */
    background: #033066 !important;  /* ← Фон остается синим */
}

/* Элементы списка */
.subsubmenu li { 
    margin: 0 !important; 
    padding: 0 !important; 
    border-bottom: 1px solid rgba(255,255,255,0.1); /* ← Разделитель */
}

.subsubmenu li:last-child {
    border-bottom: none !important;  /* ← У последнего нет разделителя */
}

/* Ссылки внутри подподменю */
.subsubmenu a {
    display: flex !important;         /* ← МЕНЯЕМ: было block */
    align-items: center !important;   /* ← Добавляем */
    padding: 6px 15px !important;     /* ← Компактные отступы */
    color: white !important;
    background: #033066 !important;   /* ← Фон такой же как у списка */
    white-space: nowrap;
    height: 30px !important;          /* ← Фиксированная высота */
    transition: all 0.2s;
}

/* При наведении на ПОДПУНКТ */
.subsubmenu a:hover {
    background: #2980b9 !important;   /* ← ФОН меняется на голубой */
    color: white !important;
    padding-left: 20px !important;    /* ← Сдвиг текста */
}

/* Одинаковые размеры для submenu и subsubmenu */
.subsubmenu > li > a {
    padding: 14px 20px !important;  /* ← Такие же как в submenu */
    min-height: 45px !important;    /* ← Такие же как в submenu */
	border: none !important;
    border-radius: 0 !important;
}


/* Стили для пагинации */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #3498db;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.page-btn:hover:not(.active) {
    background: #f8f9fa;
    border-color: #3498db;
}

/* Стили для хлебных крошек */
.breadcrumbs-container {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumbs ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #666;
}

/* Стили для бесконечной прокрутки */
.load-more-btn:hover {
    background: #2980b9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* === ОПИСАНИЕ ТОВАРА НА ДЕТАЛЬНОЙ СТРАНИЦЕ === */

/* Первый абзац — краткое описание */
.product-description-lead {
	margin-left: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
    font-size: 15px;
}

/* Строка с попапом (например, "• [Плата управления RT2281]") */
.product-popup-line {
    margin: 10px 0;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

/* Таблица технических характеристик */
.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.product-specs-table tr {
    border-bottom: 1px solid #e9ecef;
}

.product-specs-table td {
    padding: 10px 15px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

/* Чередующиеся цвета строк */
.product-specs-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.product-specs-table tr:nth-child(odd) {
    background-color: #fff;
}

/* === ХЛЕБНЫЕ КРОШКИ === */
.breadcrumbs {
    margin-bottom: 20px;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Стили для ВСЕХ ссылок (универсальные) */
.breadcrumbs a,
.breadcrumb-home,
.breadcrumb-category,
.breadcrumb-subcategory {
    color: #3498db !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

/* Текущая страница */
.breadcrumb-current {
    color: #3498db !important;
    font-weight: bold !important;
}

/* Разделитель */
.breadcrumb-separator {
    color: #999 !important;
    margin: 0 4px !important;
    font-size: 16px !important;
}

.breadcrumbs {
    margin-left: 30px !important; /* Больше отступ */
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .wrapper {
        margin: 0 auto;
        padding: 0 3px;
    }
	
/* Стили для кнопки "В наличии" */	
	 .availability-badge {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    header {
        display: none;
    }
    
    header.shapka {
        display: none;
    }
    
    nav {
        display: flex;
        max-width: 1200px;
        margin: 0 auto;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        background-color: var(--dark);
        border-radius: 0px;
        border: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        position: relative;
        height: 60px;
    }
    
     .menu-toggle {
        position: absolute;
        left: 50%; /* Центрируем по горизонтали */
        top: 50%;
        transform: translate(-50%, -50%); /* Центрируем точно по центру */
        z-index: 1001;
        display: block;
        background-color: #6c757d; /* Серый цвет */
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        color: white;
        cursor: pointer;
        font-size: 24px;
        border-radius: 4px;
    }
	
	.mobile-back-btn {
        color: white !important;
        text-decoration: none !important;
        margin: 10px 0 !important;
        font-size: 24px !important;
        font-family: var(--font-family-sans-serif) !important;
        font-weight: 500 !important;
        padding: 10px 20px !important;
        border: 2px solid white !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
  .mobile-back-btn:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: translateX(-5px) !important;
    }
	
	.menu {
        display: none !important;
    }

    
    .mobile-cart-header {
        position: absolute;
        top: 50%;
        right: 60px;
        transform: translateY(-50%);
        display: block !important;
        z-index: 1001;
    }
    
    .cart-nav-item {
        display: none;
    }
    
    .close-page {
        display: flex;
        background-color: var(--white);
        align-items: center;
    }
    

    
    .grid-item {
        flex-direction: column;
    }
    
    .grid-text {
        background-color: var(--dark);
        font-family: var(--font-family-sans-serif);
        color: var(--white);
    }
    
    .top-split > div {
        flex: 1 1 100%;
        padding: 15px;
        min-height: auto;
    }
    
    .grid-image {
        border-right: none;
    }
    
    .product-card {
        padding: 15px;
        box-shadow: none;
    }
    
    .product-card h1 {
        font-size: 20px;
    }
    
    .product-split > div {
        flex: 1 1 100%;
    }
    
    .product-card.animate__animated.animate__fadeInUp.image-slider {
        padding: 15px;
        box-shadow: none;
        width: 100%;
        margin: 10px 0;
    }
    
    .product-card.animate__animated.animate__fadeInUp.image-slider.blue-bg {
        background-color: var(--gray-dark);
        color: white;
    }
    
    .product-card.animate__animated.animate__fadeInUp.image-slider.white-bg {
        display: none;
        background-color: white;
        color: #333;
    }
    
    .top-split > div {
        flex: 1 1 100%;
    }
    
    .narrow-split > div {
        flex: 1 1 100%;
    }
    
    .image-slider {
        height: auto;
    }
    
    .image-slider img {
        position: static;
        opacity: 1;
        display: none;
    }
    
    .image-slider img.active {
        display: block;
    }
    
    .close-chat {
        font-size: 36px;
        top: 15px;
        right: 15px;
    }
    
    .contact-form {
        max-width: 480px;
        padding: 15px;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
    }
    
    .chat-bot.animate__animated.animate__bounceInUp {
        background-color: var(--cian);
        width: 40px;
        height: 40px;
    }
    
    .links-section {
        display: none;
    }
    
    .footer {
        background-color: #343a40;
        text-align: center;
    }
    
    .footer p,
    .social-links a {
        color: #ffffff;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .social-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-links a {
        justify-content: center;
    }
    
    #chatForm button {
        background-color: var(--gray);
    }
    
    .contact-form button {
        background-color: var(--gray);
    }
    
    /* Стили из шаблона для мобильных */
    .main-content-with-sidebar {
        flex-direction: column;
        gap: 20px;
        margin: 15px 0;
        padding: 0 10px;
    }
    
    .left-sidebar {
        width: 100%;
        order: 2;
        padding: 15px;
    }
    
    .main-content {
        order: 1;
    }
    
    .sidebar-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .sidebar-section h3 {
        font-size: 15px;
    }
    
    .sidebar-list a {
        font-size: 13px;
    }
    
    .cart-section {
        padding: 15px;
        margin: 15px 0;
    }
    

    
    .description-content {
        padding: 15px;
        margin: 10px 0;
        font-size: 14px;
        line-height: 1.6;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .description-content h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .order-modal-content {
        max-height: 80vh !important;
    }
    
    #orderForm {
        max-height: calc(80vh - 100px) !important;
    }
    
    #orderItems {
        max-height: 120px !important;
        overflow-y: auto !important;
    }
    
    .product-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-image-column {
        flex: 1;
    }
	
	.product-info-column {
        text-align: center !important; /* центрирует текст, кнопки и inline-элементы */
    }
	
	.cart-section {
        text-align: center;
        align-items: center;
    }
    
    .add-to-cart-section {
        flex-direction: column !important;
        align-items: center !important; /* ← выравнивание по горизонтали */
        gap: 14px !important;
        width: 100% !important;
    }
    
    /* Убираем все сдвиги и позиционирование */
    .add-to-cart-btn {
        width: 100%;
        max-width: 250px;
        min-width: auto;
    }
    
    .price-request-button {
        display: flex;
        justify-content: center;
        margin: 1px 0 !important;
    }

    .price-request-btn {
        /* Убедитесь, что кнопка не растягивается */
        width: auto !important;
        max-width: 250px;
    }
	
    
    /* Центрируем контейнер количества */
    .quantity-selector {
        justify-content: center !important;
        width: auto !important;
        max-width: 250px !important;
    }
    
    .quantity-input {
        width: 50px;
    }
	
/* ФИКСИРУЕМ ВЫСОТУ БЛОКА ДЛЯ МОБИЛЬНЫХ */
    /* ФИКСИРУЕМ ВЫСОТУ БЛОКА ДЛЯ МОБИЛЬНЫХ */
    .gallery-main {
        height: 300px !important;
        max-height: 300px !important;
        min-height: 300px !important;
    }
    
    .gallery-slide {
        height: 300px !important;
        object-fit: contain !important;
    }
    
    /* УМЕНЬШАЕМ СТРЕЛКИ В ГАЛЕРЕЕ */
    .gallery-prev, .gallery-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    /* УМЕНЬШАЕМ МИНИАТЮРЫ */
    .gallery-thumb {
        width: 50px;
        height: 50px;
    }
    
    /* ⭐⭐⭐ МОБИЛЬНЫЙ КРЕСТИК (ближе к углу) ⭐⭐⭐ */
.gallery-modal .gallery-modal-close {
        position: fixed !important;
        top: 250px !important;        /* отступ сверху */
        right: 10px !important;      /* отступ справа */
        width: 32px !important;
        height: 32px !important;
        font-size: 20px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid #e0e0e0 !important;
        color: #333 !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
        z-index: 10003 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        transition: all 0.2s ease !important;
    }

    .gallery-modal .gallery-modal-close:hover {
        background: #3498db !important;
        color: white !important;
        transform: scale(1.05) !important;
    }
    
    /* УМЕНЬШАЕМ И ОПУСКАЕМ СТРЕЛКИ В МОДАЛЬНОМ ОКНЕ */
    .gallery-modal-prev, .gallery-modal-next {
        width: 44px;
        height: 44px;
        font-size: 22px;
        top: 50% !important; /* Гарантируем центрирование */
        transform: translateY(-50%) !important;
    }
    
    /* АДАПТИВНОСТЬ ДЛЯ ГАЛЕРЕИ */
    .product-gallery {
        max-width: 100%;
        padding: 5px;
    }
 
 /* АДАПТИВНОСТЬ синего подменю основного */
 .has-subsubmenu > a .fa-chevron-right {
        transform: rotate(90deg);
    }
    
    .subsubmenu {
        position: static;
        display: none;
        margin-left: 20px;
        box-shadow: none;
        border: none;
        border-left: 3px solid #3498db;
        background: rgba(52, 152, 219, 0.1) !important;
    }
    
    .subsubmenu a {
        background: transparent;
        color: #333 !important;
    }
    
    .has-subsubmenu.active .subsubmenu {
        display: block;
    }
/* АДАПТИВНОСТЬ подкатегории на странице */
    .subcategories-grid,
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-title {
        font-size: 24px;
    }
	
    .breadcrumbs {
        font-size: 13px;
        padding: 8px 0;
    }
    
    .breadcrumb-current {
        color: #3498db !important;
        font-weight: bold;
    }
.breadcrumbs {
        font-size: 13px !important;
        padding: 8px 0 !important;
    }
    
    /* Стили для ВСЕХ ссылок на мобильных */
    .breadcrumbs a,
    .breadcrumb-home,
    .breadcrumb-category,
    .breadcrumb-subcategory {
        color: #3498db !important;
        text-decoration: none !important;
        font-weight: 500 !important;
    }
    
    /* Текущая страница на мобильных */
    .breadcrumb-current {
        color: #3498db !important;
        font-weight: bold !important;
    }
    
    /* Разделитель на мобильных */
    .breadcrumb-separator {
        color: #999 !important;
        font-size: 14px !important;
    }
	  .breadcrumbs {
        margin-left: 15px !important; /* Больше отступ */
    }
	
	
}



/* Десктоп */
@media (min-width: 769px) {
    .mobile-cart-header {
        display: none;
    }
	
	.mobile-menu {
        display: none !important;
    }
	
	    .add-to-cart-section {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
    
    .quantity-selector {
        justify-content: flex-start;
        max-width: none;
        gap: 8px;
        margin-right: 5px; /* Добавляем небольшой отступ справа */
    }
	
	   /* УБИРАЕМ ИЛИ УМЕНЬШАЕМ ОТСТУП СЛЕВА У КНОПКИ */
    .add-to-cart-btn {
        margin-left: 0 !important; /* Убираем отступ слева */
        /* ИЛИ margin-left: 5px !important; если нужен совсем маленький отступ */
    }
	
	 .cart-section {
        text-align: left;
        align-items: flex-start;
        padding-left: 0;
        margin-left: 0;
    }
	

    body .cart-section .add-to-cart-section,
    body .cart-section .add-to-cart-section {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        /* gap: 0px !important;  */
        display: flex !important;

}
.add-to-cart-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    max-width: fit-content !important;
}



}

/* Адаптивная сетка: от 1 до 3 колонок */
@media (min-width: 992px) {
    .subcategories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    }
}
@media (max-width: 991px) {
    .subcategories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .main-content-with-sidebar {
        flex-direction: column;
        gap: 20px;
    }
    
    .left-sidebar {
        width: 100%;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
	
	 .add-to-cart-section {
        flex-wrap: wrap;
    }
    
    .quantity-selector {
        margin-right: 15px;
    }
	
}

