/* ==========================================================================
   1. ГЛОБАЛЬНЫЕ СТИЛИ И ТИПОГРАФИКА (Roboto)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif !important;
    font-size: 1.1rem !important;
    line-height: 1.4rem !important;
}

.page-header h2, .blog-item h2 {
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    line-height: 1.8rem !important;
}

/* Ссылки в заголовках */
.item-title a, .page-header a, h1 a, h2 a, h3 a {
    color: #444;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.item-title a:hover, .page-header a:hover {
    color: #00bcd4 !important;
}

/* ==========================================================================
   2. ШАПКА И НАВИГАЦИЯ (Логотип и Темное меню)
   ========================================================================== */
header.header {
    background: #fff !important;
    padding: 10px 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Логотип NIKPROJECT.COM */
.navbar-brand {
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.navbar-brand::before {
    content: "N";
    background: #343a40;
    color: #fff;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 15px;
    font-weight: 900;
    font-size: 2.2rem;
}

.navbar-brand::after {
    content: "NIKPROJECT.COM";
    color: #343a40;
    font-size: 2.0rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar-brand img, .navbar-brand span { display: none !important; }

/* Темная панель меню */
.container-nav {
    background: #343a40 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.mod-menu.nav {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mod-menu.nav > li > a {
    color: #fff !important;
    padding: 0.8rem 1.4rem !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: 0.3s;
}

.mod-menu.nav > li > a:hover {
    background: #495057 !important;
    color: #00bcd4 !important;
}

/* Выпадающее меню */
.mod-menu.nav li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff !important;
    min-width: 220px;
    padding: 10px 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    display: none;
    z-index: 9999;
}

.mod-menu.nav li:hover > ul { display: block !important; }

.mod-menu.nav li ul li a {
    color: #444 !important;
    padding: 0.6rem 1rem !important;
    display: block !important;
    font-size: 1.2rem !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f5f5f5;
}

.mod-menu.nav li ul li a:hover {
    background: #e6e7e8 !important;
    color: #00bcd4 !important;
    padding-left: 25px !important;
}

.mod-menu__toggle-sub { display: none !important; }

/* ==========================================================================
   3. УНИВЕРСАЛЬНЫЕ ЭФФЕКТЫ ИЗОБРАЖЕНИЙ (Zoom при наведении)
   ========================================================================== */
.jshop_list_product .image, 
.latest_products .image, 
.blog-item .item-image, 
.item-image {
    overflow: hidden !important;
    border-radius: 8px !important;
}

.jshop_list_product .image img, 
.latest_products .image img, 
.blog-item .item-image img, 
.item-image img {
    transition: transform 0.4s ease-in-out !important;
}

/* Срабатывание зума при наведении на родительскую карточку */
.jshop_list_product .block_product:hover .image img, 
.jshop_list_product .block_item:hover .image img,
.latest_products .block_item:hover .image img,
.blog-item:hover .item-image img {
    transform: scale(1.1) !important;
}

/* ==========================================================================
   4. БЛОГ И КАРТОЧКИ СТАТЕЙ
   ========================================================================== */
@media (min-width: 992px) {
    .blog-items.columns-3 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
    }
}

.blog-item {
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    height: 100% !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

.item-content { display: contents !important; }
.item-title { margin-bottom: 15px !important; font-size: 1.4rem !important; }
.item-image { margin-bottom: 15px !important; }

/* Кнопка "Далее" и общие кнопки primary */
.readmore .btn, .btn-primary, .btn-info-custom {
    background-color: #00bcd4 !important;
    border: none !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 10px 25px !important;
    text-transform: uppercase;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: 0.3s;
}

.readmore .btn:hover, .btn-primary:hover {
    background-color: #0097a7 !important;
}

.readmore { margin-top: auto !important; }

/* ==========================================================================
   5. МАГАЗИН (JoomShopping) - КАТАЛОГ И МОДУЛИ
   ========================================================================== */
/* Сетка для модуля последних товаров */
.latest_products.jshop_list_product {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.latest_products .block_item {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
}

.latest_products .block_item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* Заголовки товаров в списке */
.jshop .name a, .jshop .product_name a {
    text-decoration: none !important;
    font-size: 1.8rem;
    font-weight: bold;
    color: #444;
    display: block;
    margin-bottom: 15px;
    padding: 0 2rem;
    text-align: left;
}

.jshop .name a:hover, .jshop .product_name a:hover { color: #00bcd4; }

.description { text-align: left; padding: 0 2rem; }

/* Скрытие рейтинга */
.jshop .review_mark, .jshop .count_commentar { display: none !important; }

/* ==========================================================================
   6. КАРТОЧКА ТОВАРА (Описание и Кнопки покупки)
   ========================================================================== */
.marketplace-wrapper {
    margin-top: 10px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.m-title { display: block; margin-bottom: 15px; font-weight: 600; font-size: 1.8rem; }

.m-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Большие центрированные кнопки маркетплейсов */
.m-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 30px;
    min-width: 220px;
    font-size: 20px;
    border-radius: 12px;
    text-decoration: none !important;
    color: #fff !important;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.m-btn.wb { background: #cb11ab; }
.m-btn.ozon { background: #005bff; }
.m-btn.avito { background: #96d100; }

.m-btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.modern-description { line-height: 1.6; color: #333; }

/* Кнопка оплаты на сайте */
.btn-site-pay {
    width: 100%;
    padding: 18px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-site-pay:hover { background: #218838; }

/* ==========================================================================
   7. ГАЛЕРЕЯ И МОДАЛЬНЫЕ ОКНА
   ========================================================================== */
.thumb-item { cursor: pointer; transition: 0.2s; aspect-ratio: 1/1; object-fit: cover; }
.thumb-item:hover { border-color: #00bfff !important; }
.thumb-active { border: 2px solid #6a5acd !important; }

.c-modal {
    display: none; position: fixed; z-index: 10000; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.95);
    align-items: center; justify-content: center; overflow: auto;
}

.zoomable { 
    max-width: 90vw; max-height: 90vh; 
    transition: transform 0.3s ease; 
    cursor: zoom-in; 
    border-radius: 4px;
}

.zoomable.is-zoomed { 
    transform: scale(2);
    cursor: zoom-out; 
}

@media (max-width: 767px) {
    .product-gallery-sticky { position: relative !important; top: 0 !important; }
    .m-btn { width: 100%; } /* Кнопки на весь экран на мобильных */
}