/*
Theme Name: Clean Commerce Child Kabbooks
Theme URI: https://wenthemes.com/item/wordpress-themes/clean-commerce/
Template: clean-commerce
Author: WEN Themes
Author URI: https://wenthemes.com/
Description: Clean Commerce Child Theme for kabbooks.in.ua
Version: 1.1.3
Updated: 2026-06-22
*/

/* ================================================
   БАЗОВІ СТИЛІ
   ================================================ */

body {
    color: #3f526f;
    font-family: 'Roboto Slab', sans-serif;
    font-size: 15px;
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', sans-serif;
    font-weight: 400;
}

/* CSS змінні кнопок */
:root {
    --color-add-to-cart-background: #480096b8;
    --color-add-to-cart-background-hover: #a46497;
    --color-add-to-cart-border: #480096b8;
    --color-button-style-1-background: #480096b8;
    --color-button-style-1-background-hover: #a46497;
    --color-button-style-1-border: #480096b8;
}

/* ================================================
   ПОСИЛАННЯ
   ================================================ */

.entry-content a:not(.btn-version),
.woocommerce-product-details__short-description a:not(.btn-version),
.entry-summary a:not(.button):not(.wp-block-button__link):not(.btn-version) {
    color: #3f526f !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    text-decoration-color: #d4c0ab !important;
    text-decoration-thickness: 1px !important;
    transition: color 0.2s !important;
}

.entry-content a:not(.btn-version):hover,
.woocommerce-product-details__short-description a:not(.btn-version):hover,
.entry-summary a:not(.button):not(.wp-block-button__link):not(.btn-version):hover {
  color: #b88b59 !important;
  text-decoration-color: #b88b59 !important;
}

/* Посилання в таблицях замовлень */
.woocommerce-orders-table a,
.shop_table a {
    color: #b88b59 !important;
    text-decoration: none !important;
}

.woocommerce-orders-table a:hover,
.shop_table a:hover {
    color: #3f526f !important;
}

/* Посилання у віджетах товарів */
.woocommerce ul.product_list_widget li a,
.woocommerce ul.cart_list li a {
    color: #3f526f !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.woocommerce ul.product_list_widget li a:hover,
.woocommerce ul.cart_list li a:hover {
    color: #b88b59 !important;
}

/* Меню особистого кабінету — без підкреслення */
.woocommerce-MyAccount-navigation ul li a {
    text-decoration: none !important;
}

/* ================================================
   КНОПКИ
   ================================================ */

button,
a.button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    background: #480096b8 none repeat scroll 0 0;
    font-family: "Roboto Slab", sans-serif;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background-color: #a46497;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce ul.products li.product .button,
.add_to_cart_button,
.ajax_add_to_cart,
.checkout-button,
.single_add_to_cart_button {
    background-color: #480096b8 !important;
    border-color: #480096b8 !important;
    color: #ffffff !important;
    font-family: "Roboto Slab", sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce ul.products li.product .button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover {
    background-color: #a46497 !important;
    border-color: #a46497 !important;
    color: #ffffff !important;
}

/* ================================================
   ТАБЛИЦІ
   ================================================ */

.woocommerce table.shop_table thead,
.woocommerce-cart table.cart thead,
.woocommerce table.shop_table th {
    background-color: #3f526f !important;
    color: #ffffff !important;
}

.woocommerce table.shop_table,
.woocommerce-cart .cart-collaterals .cart_totals table {
    border-color: #3f526f !important;
}

/* ================================================
   ХЕДЕР
   ================================================ */

#tophead {
    background-color: #3f526f !important;
}

#main-nav {
    background: #122f5f !important;
}

.site-branding a,
.site-title a {
    color: #b88b59 !important;
}

.site-branding a:hover,
.site-title a:hover {
    color: #3f526f !important;
}

.site-description {
    color: #3f526f !important;
}

/* Іконки топхеда */
#quick-contact li::before {
    font-family: 'bootstrap-icons' !important;
    display: inline-block !important;
    color: #ffffff !important;
    margin-right: 5px !important;
}

#quick-contact li.quick-call::before  { content: "\f5a5" !important; }
#quick-contact li.quick-email::before { content: "\f32f" !important; }
#quick-contact li.quick-address::before { content: "\f3e2" !important; }

/* Меню */
.main-navigation ul li a,
.main-navigation ul ul a {
    font-family: 'Roboto Slab', sans-serif !important;
}

.main-navigation ul li.menu-item-has-children > a::after,
.main-navigation ul li.page_item_has_children > a::after {
    content: "\f107" !important;
    font-family: FontAwesome !important;
    display: inline-block !important;
}

.main-navigation ul li li.menu-item-has-children > a::after,
.main-navigation ul li li.page_item_has_children > a::after {
    content: "\f105" !important;
    font-family: FontAwesome !important;
    display: inline-block !important;
}

/* Кнопки хедера */
li.account-login a,
li.cart-price a {
    background-color: transparent !important;
    color: #b88b59 !important;
    border: 2px solid #b88b59 !important;
    border-radius: 0.25em !important;
    padding: 21px 42px !important;
    font-family: inherit !important;
    font-size: 1em !important;
    font-weight: bold !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    box-sizing: border-box !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}

li.account-login a:hover,
li.cart-price a:hover {
    border-color: #d4c0ab !important;
    color: #ffffff !important;
    background-color: #b88b59 !important;
}

li.cart-price a strong {
    color: inherit !important;
    font-weight: bold !important;
}

li.cart-icon {
    display: none !important;
}

#cart-section ul {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px !important;
}

/* Мобільна кнопка меню */
a#mobile-trigger i,
#mobile-trigger i {
    background-color: #3f526f !important;
    border: 1px solid #b88b59 !important;
    color: #ffffff !important;
}

.mobile-nav-wrap {
    background: #3f526f !important;
}

/* Перемикач мов */
.widget_mslswidget h2 a img[alt="ru_RU"] {
    content: url('https://kabbooks.in.ua/ua/wp-content/uploads/2022/07/ru.png') !important;
    transition: opacity 0.3s !important;
}

.widget_mslswidget h2 a:hover img[alt="ru_RU"] {
    content: url('https://kabbooks.in.ua/ua/wp-content/uploads/2022/07/ua.png') !important;
    opacity: 0.85 !important;
}

.widget_mslswidget h2 a img[alt="uk"] {
    content: url('https://kabbooks.in.ua/ua/wp-content/uploads/2022/07/ua.png') !important;
    transition: opacity 0.3s !important;
}

.widget_mslswidget h2 a:hover img[alt="uk"] {
    content: url('https://kabbooks.in.ua/ua/wp-content/uploads/2022/07/ru.png') !important;
    opacity: 0.85 !important;
}

.widget_mslswidget .msls_no_translation {
    display: none !important;
}

/* ================================================
   МОБІЛЬНА ВЕРСІЯ ХЕДЕРА
   ================================================ */

@media only screen and (max-width: 900px) {
    .header-search-box {
        display: block !important;
        float: none !important;
        text-align: center !important;
    }

    #masthead {
        padding-left: 0 !important;
        padding-right: 25px !important;
    }

    #cart-section {
        float: none !important;
        width: 100% !important;
        clear: both !important;
    }

    #cart-section ul {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 8px !important;
    }

    #cart-section li,
    #cart-section li.account-login,
    #cart-section li.cart-price {
        display: block !important;
        float: none !important;
        width: 100% !important;
        padding: 0 !important;
    }

    li.account-login a,
    li.cart-price a {
        width: 100% !important;
        padding: 14px 21px !important;
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: normal !important;
        box-sizing: border-box !important;
    }
}

/* ================================================
   КАТАЛОГ ТОВАРІВ
   ================================================ */

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    color: #3f526f !important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link:hover,
.woocommerce ul.products li.product .woocommerce-loop-product__title:hover {
    color: #b88b59 !important;
}

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price span {
    color: #b88b59 !important;
    font-size: 1em !important;
    font-weight: bold !important;
}

.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist {
    display: none !important;
}

/* ================================================
   СТОРІНКА ТОВАРУ
   ================================================ */

/* Ціна */
.single-product .summary p.price {
    font-size: 2em !important;
    border-top: 1px solid #b88b59 !important;
    border-bottom: 1px solid #b88b59 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

.single-product .summary .price span,
.single-product .summary .price bdi {
    font-size: 1em !important;
    color: #b88b59 !important;
    font-weight: bold !important;
}

.single-product .summary .price .woocommerce-Price-currencySymbol {
    font-size: 0.7em !important;
    vertical-align: middle !important;
}

/* Наявність */
.single-product .summary .stock {
    font-size: 15px !important;
    border-top: 3px double rgb(235, 233, 235) !important;
    padding-top: 15px !important;
    margin-top: 15px !important;
}

/* Кнопка "В корзину" */
.single-product .single_add_to_cart_button {
    border: 2px solid #480096b8 !important;
    padding: 9px 15px !important;
}

/* Поле кількості */
.single-product .quantity input.qty {
    border: 2px solid #480096b8 !important;
    border-radius: 4px !important;
    height: 100% !important;
    padding: 9px 10px !important;
    font-family: 'Roboto Slab', sans-serif !important;
    font-size: 16px !important;
    color: #3f526f !important;
    box-sizing: border-box !important;
}

/* Вирівнювання кнопки і поля кількості */
.single-product .cart {
    display: flex !important;
    align-items: stretch !important;
}

.single-product .quantity {
    display: flex !important;
    align-items: stretch !important;
}

/* Кнопка вішліста */
.single-product .yith-wcwl-add-to-wishlist-button,
.single-product .yith-wcwl-add-button a {
    background-color: #ffffff !important;
    color: #b88b59 !important;
    border: 2px solid #b88b59 !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    padding: 5px 15px !important;
    display: inline-flex !important;
    align-items: center !important;
}
.single-product .yith-wcwl-add-to-wishlist-button:hover,
.single-product .yith-wcwl-add-button a:hover {
    background-color: #b88b59 !important;
    color: #ffffff !important;
}
.single-product .yith-add-to-wishlist-button-block {
    margin-top: 5px !important;
    margin-bottom: 25px !important;
}

/* Метадані */
.product_meta > span {
    display: block !important;
    margin-bottom: 10px !important;
}

/* Сховати MSLS посилання */
p#msls {
    display: none !important;
}

/* ===== КНОПКИ ВЕРСІЙ КНИГИ ===== */
/* .entry-summary додано для авто-кнопок (PHP, хук woocommerce_single_product_summary),
   які виводяться поза коротким описом у власному <p class="kab-format-link">. */
.entry-content a.btn-version,
.woocommerce-product-details__short-description a.btn-version,
.entry-summary a.btn-version {
    display: inline-block !important;
    background-color: transparent !important;
    color: #b88b59 !important;
    border: 2px solid #b88b59 !important;
    border-radius: 0.25em !important;
    padding: 7px 15px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    text-decoration-color: transparent !important;
    margin: 5px 5px 5px 0 !important;
    width: fit-content !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}

.entry-content a.btn-version:hover,
.entry-content a.btn-version:focus,
.woocommerce-product-details__short-description a.btn-version:hover,
.entry-summary a.btn-version:hover,
.entry-summary a.btn-version:focus {
    background-color: #b88b59 !important;
    color: #ffffff !important;
    border-color: #d4c0ab !important;
    text-decoration: none !important;
    text-decoration-color: transparent !important;
}

/* Обгортка авто-кнопок форматів — прибираємо зайвий відступ абзацу */
.kab-format-link {
    margin: 8px 0 !important;
}

/* Убрать пустые отступы в кратком описании товара */
.single-product .woocommerce-product-details__short-description p:empty,
.single-product .woocommerce-product-details__short-description ul:empty,
.single-product .woocommerce-product-details__short-description li:empty {
    display: none;
}
.single-product .woocommerce-product-details__short-description hr:last-child {
    margin-bottom: 0;
}


/* ================================================
   ФУТЕР
   ================================================ */

#footer-widgets {
    background: #122f5f !important;
}

#colophon {
    background-color: #3f526f !important;
    border-top-color: #b88b59 !important;
}

.wp-block-search__button {
    background-color: transparent !important;
    color: #d4c0ab !important;
    border: 2px solid #d4c0ab !important;
    border-radius: 0.25em !important;
    font-size: 1em !important;
    padding: 0.75em 1.4em !important;
    font-family: inherit !important;
    transition: background 0.2s, color 0.2s !important;
    text-decoration: none !important;
}

.wp-block-search__button:hover {
    background-color: #b88b59 !important;
    color: #ffffff !important;
    border-color: #d4c0ab !important;
}

.wp-block-search__input {
    border: 2px solid #d4c0ab !important;
    border-radius: 0.25em !important;
    padding: 1.3em !important;
    color: #3f526f !important;
}

/* ================================================
   ХЛІБНІ КРИХТИ
   ================================================ */

.woo-breadcrumbs ul,
.woo-breadcrumbs li {
    display: inline !important;
    list-style: none !important;
}

.woo-breadcrumbs li::before {
    content: none !important;
}

.woo-breadcrumbs li::after {
    content: " › " !important;
    color: #3f526f !important;
}

.woo-breadcrumbs li:last-child::after {
    content: none !important;
}

.woo-breadcrumbs a,
.woo-breadcrumbs li {
    color: #3f526f !important;
    text-decoration: none !important;
}

.woo-breadcrumbs a:hover {
    color: #b88b59 !important;
}

/* ================================================
   ОСОБИСТИЙ КАБІНЕТ
   ================================================ */

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.woocommerce-MyAccount-navigation ul li {
    list-style: none !important;
    padding: 0 !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    background-color: transparent !important;
    color: #3f526f !important;
    border: 2px solid #b88b59 !important;
    border-radius: 0.25em !important;
    padding: 14px 21px !important;
    font-size: 1em !important;
    font-weight: bold !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #b88b59 !important;
    color: #ffffff !important;
    border-color: #d4c0ab !important;
}

/* Номера заказов в таблице "Мои заказы" — читаемый цвет на тёмном фоне */
.woocommerce-orders-table__cell-order-number a,
.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number a {
    color: #ffffff !important;
    text-decoration-color: #b88b59 !important;
}
.woocommerce-orders-table__cell-order-number a:hover {
    color: #b88b59 !important;
}

/* Навигация кабинета — белый текст на золотой плашке при наведении и у активного пункта */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link a:hover,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.is-active a {
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;
}