/* ============================================
   CUSTOM CSS - chairman.spb.ru
   Version: 33 (2026-10-11)
   ============================================ */

/* 1. MENU - contrast hover */
#cbp-hrmenu ul li a,
#cbp-hrmenu ul li a span,
#cbp-hrmenu .cbp-hrmenu-tab > a,
#cbp-hrmenu .cbp-hrmenu-tab > a span {
    transition: all 0.2s ease !important;
}
#cbp-hrmenu ul li a:hover,
#cbp-hrmenu ul li a:hover span,
#cbp-hrmenu .cbp-hrmenu-tab > a:hover,
#cbp-hrmenu .cbp-hrmenu-tab > a:hover span,
#cbp-hrmenu .cbp-hrmenu-tab > a:hover .cbp-tab-title {
    background: #0f2d33 !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

/* 2. PRODUCT CARDS */
.ajax_block_product .product-container {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    transition: all 0.3s ease;
}
.ajax_block_product .product-container:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #4eb8c4;
}

/* 3. ADD TO CART BUTTON */
.ajax_add_to_cart_button {
    background: #4eb8c4 !important;
    border-color: #4eb8c4 !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 6px;
}
.ajax_add_to_cart_button:hover {
    background: #2a8a96 !important;
    border-color: #2a8a96 !important;
}

/* 4. PRICES */
.old-price.product-price {
    color: #999 !important;
    text-decoration: line-through;
    font-size: 0.95em;
    font-weight: 400;
}
.content_price .price.product-price {
    color: #d32f2f !important;
    font-weight: 800;
    font-size: 22px !important;
}

/* 4b. Скрыть бейдж "-N руб." ВНУТРИ блока цены (на всех экранах) */
.content_price .price-percent-reduction,
.content_price .price-percent-reduction.small {
    display: none !important;
}

/* 5. BADGES (сверху карточки - оставляем) */
.product-flags {
    position: static !important;
}
.product-flags .sale-label,
.product-flags .new-label {
    display: inline-block !important;
    font-weight: 600 !important;
    border-radius: 3px !important;
    padding: 3px 8px !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
    position: absolute !important;
    line-height: 1.2 !important;
    z-index: 5 !important;
}
.product-flags .sale-label {
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    background: #d32f2f !important;
    color: #fff !important;
}
.product-flags .new-label {
    top: 8px !important;
    left: 8px !important;
    background: #4eb8c4 !important;
    color: #fff !important;
}

/* 6. BLOCK TITLES */
.title_block, h2.title_block {
    font-size: 22px !important;
    font-weight: 700;
    color: #222;
    border-bottom: 2px solid #4eb8c4;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* 7. SPACING */
.iqitcontent_row {
    margin-bottom: 40px;
}

/* 8. HEADER CONTACTS (desktop) */
.header-container .info-container {
    text-align: left;
    padding: 0 10px;
    border-left: 2px solid #4eb8c4;
    padding-left: 12px;
    min-height: 50px;
}
.header-container .info-container h5.topline {
    font-size: 12px !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    text-transform: none !important;
}
.header-container .info-container h5.topline strong {
    font-size: 14px !important;
    color: #222 !important;
    font-weight: 700 !important;
    text-transform: none !important;
}
.header-container .info-container a {
    text-decoration: none;
    color: inherit;
}
.header-container .info-container a:hover h5.topline strong {
    color: #4eb8c4 !important;
}
.header-container .info-tel,
.header-container .info-clock,
.header-container .info-loc,
.header-container .info-mail {
    display: none !important;
}

/* 9. FOOTER (desktop) */
@media (min-width: 768px) {
    .footer-container {
        background: #f7f9fa !important;
        border-top: 3px solid #4eb8c4;
        padding: 50px 0 30px !important;
    }
    #footer_html_content {
        text-align: center;
        margin-bottom: 30px;
        padding-bottom: 25px;
        border-bottom: 1px solid #e0e0e0;
    }
    #footer_html_content h1 {
        font-size: 20px !important;
        font-weight: 600 !important;
        color: #222 !important;
        margin: 0 !important;
    }
    #footer .footer-block {
        padding: 0 20px;
    }
    #footer h4,
    .footer-block h4 {
        color: #222 !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        margin-bottom: 20px !important;
        padding-bottom: 10px !important;
        border-bottom: 2px solid #4eb8c4;
        display: inline-block;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }
    .footer-block ul li {
        margin-bottom: 10px !important;
        font-size: 13px !important;
    }
    .footer-block ul li a {
        color: #555 !important;
        transition: all 0.2s ease;
    }
    .footer-block ul li a:hover {
        color: #4eb8c4 !important;
        padding-left: 6px;
    }
    #block_contact_infos ul li {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px !important;
        font-size: 13px;
        color: #555;
    }
    #block_contact_infos ul li i {
        color: #4eb8c4 !important;
        font-size: 16px;
        margin-top: 2px;
        min-width: 20px;
    }
    .footer_copyrights {
        background: #222 !important;
        color: #999 !important;
        padding: 15px 0 !important;
        font-size: 12px;
        text-align: center;
        margin-top: 20px;
    }
    .footer_copyrights p {
        margin: 0;
        color: #999 !important;
    }
}

/* 10. VIEW BUTTON */
.ajax_block_product .lnk_view.btn {
    background: #f5f5f5;
    border-color: #ddd;
    color: #555;
    border-radius: 6px;
}
.ajax_block_product .lnk_view.btn:hover {
    background: #e8e8e8;
}

/* 11. BANNER HOVER */
.banner-column img {
    transition: transform 0.3s ease;
}
.banner-column:hover img {
    transform: scale(1.03);
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 767px) {

    /* Скрыть лишние блоки в левой колонке */
    #special_block_right,
    #viewed-products_block_left,
    #blog_for_prestashop_column,
    #columnadverts,
    #columnadverts_list {
        display: none !important;
    }

    /* Мобильная шапка: 2 колонки + email */
    .header-container .container2 {
        padding: 8px 10px !important;
    }
    .header-container .container2 .row {
        display: block !important;
    }
    .header-container .container2 .row > div {
        width: 50% !important;
        float: left !important;
        padding: 4px 6px !important;
    }
    .header-container .container2 .col-sm-3:nth-child(3) {
        display: none !important;
    }
    .header-container .container2 .col-sm-3:nth-child(4) {
        display: block !important;
        width: 100% !important;
        clear: both !important;
    }
    .header-container .info-container {
        border-left: none !important;
        padding-left: 0 !important;
        min-height: auto !important;
    }
    .header-container .info-container h5.topline {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
    .header-container .info-container h5.topline strong {
        font-size: 13px !important;
    }

    /* SKU (product-reference) */
    .product-reference {
        display: block !important;
        font-size: 11px !important;
        color: #888 !important;
        margin-top: 6px !important;
        margin-bottom: 6px !important;
    }
    .product-reference::before {
        content: "\0410\0440\0442\0438\043A\0443\043B\0020";
        color: #aaa;
        font-weight: 400;
    }

    /* Product name spacing */
    .product-name-container {
        margin-bottom: 4px !important;
    }
    .product-name-container .product-name {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    /* Старая цена */
    .content_price .old-price,
    .content_price .old-price.product-price {
        display: inline !important;
        color: #999 !important;
        text-decoration: line-through !important;
        font-size: 12px !important;
        font-weight: 400 !important;
    }
    .content_price .price,
    .content_price .price.product-price {
        display: inline !important;
        color: #d32f2f !important;
        font-weight: 800 !important;
        font-size: 16px !important;
    }
}