/*
Theme Name: Hello Biz Child
Theme URI: http://biomedtronic.by/hello-biz-child/
Description: Дочерняя тема для Hello Biz
Author: Amt21
Template: hello-biz
Version: 1.0.0
Text Domain: hello-biz-child
*/

.flex-children-100 > *{
	flex-basis: 100%;
}

/* Все ссылки внутри футера */
footer a {
    color: #fff;           
    text-decoration: none;     
    transition: all 0.3s ease; /* плавное изменение при наведении */
}

/* Ссылки в футере при наведении курсора */
footer a:hover {
    color: #99d6d5;            /* оттенок серого */
    text-decoration: underline; /* добавляем подчеркивание */
    opacity: 0.8;              /* небольшое затемнение */
}

/* Если ссылка уже была посещена */
footer a:visited {
    color: #eeeeee;            /* светло-серый для посещённых */
}

/*ссылка в форме обратной связи*/

/* Ссылка внутри описания поля WPForms */
#wpforms-1920-field_4-description a {
    color: #598DAC;
    transition: color 0.3s ease; /* плавный переход при наведении */
}

/* Ссылка при наведении */
#wpforms-1920-field_4-description a:hover {
    color: #3e6278;
    text-decoration: underline; /* подчёркивание при наведении (по желанию) */
}

/* Ссылка в карточке товара WooCommerce */
/* Ссылка в карточке товара WooCommerce */
.woocommerce-LoopProduct-link.woocommerce-loop-product__link,
.product_meta a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* При наведении */
.woocommerce-LoopProduct-link.woocommerce-loop-product__link:hover,
.product_meta a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* Отступ хлебные крошки в карточке товара WooCommerce */
.woocommerce-breadcrumb {
	margin: 2rem 0 3rem 0 !important;
}

/*Переносим мета товара на две строки*/
.product_meta .posted_in:first-child::after {
    content: '';
    display: block;
    margin-bottom: 0.5rem;
}

/* Основной стиль кнопки В КОРЗИНУ*/

.single_add_to_cart_button {
    background: linear-gradient(135deg, #A569BD, #7D3C98) !important; /* Теплый фиолетовый */
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 0.8rem 1.5rem !important;
    font-size: 1rem !important;
    border: none !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03rem !important;
    
    /* Отступы сверху и снизу */
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

/* Стиль при наведении */
.single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98) !important; /* Чуть темнее при наведении */
    transform: translateY(-0.1rem) !important;
    box-shadow: 0 0.4rem 1.2rem rgba(142, 68, 173, 0.4) !important;
}

/* Активное состояние (при клике) */
.single_add_to_cart_button:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
}

/* Адаптивность для маленьких экранов */
@media (max-width: 768px) {
    .single_add_to_cart_button {
        font-size: 0.9rem !important;
        padding: 0.7rem 1rem !important;
        border-radius: 0.4rem !important;
        margin-top: 0.8rem !important;
        margin-bottom: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .single_add_to_cart_button {
        font-size: 0.8rem !important;
        padding: 0.6rem 0.8rem !important;
        margin-top: 0.6rem !important;
        margin-bottom: 0.6rem !important;
    }
}

.product_title {
    font-family: 'Arial', 'Helvetica Neue', sans-serif !important;
    font-weight: 300 !important;
    font-size: 1.8rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.8rem !important;
    border-bottom: 2px solid #e8e8e8 !important; /* Тонкая разделительная линия */
}

/* ============================================
   СТИЛИ ДЛЯ ВКЛАДОК (TABS)
   ============================================ */
/* Убираем отступы у списка */
.woocommerce-tabs .tabs {
    padding-left: 0 !important;
}

/* Каждая вкладка — шире в 2 раза + фон для неактивных */
.woocommerce-tabs .tabs li {
    flex: 2 1 auto !important;
    background: rgba(19, 139, 79, 0.1) !important;  /* ← полупрозрачный светло-зелёный */
    border-color: transparent !important;
    border-radius: 16px 16px 0 0 !important;        /* скругление для <li> */
}

/* Сами кнопки вкладок */
.woocommerce-tabs .tabs li a {
    background: transparent !important;
    color: #4a5568 !important;
    border-radius: 16px 16px 0 0 !important;
    font-weight: 500 !important;
    padding: 0.8rem 1.5rem !important;
    transition: color 0.2s ease !important;
}

/* Активная вкладка — прозрачный фон */
.woocommerce-tabs .tabs li.active {
    background: transparent !important;  /* убираем фон у активной */
}

.woocommerce-tabs .tabs li.active a {
    color: #138B4F !important;
    border-bottom: 2px solid #138B4F !important;
    background: transparent !important;
}

/* При наведении на неактивную вкладку — чуть насыщеннее фон */
.woocommerce-tabs .tabs li:not(.active):hover {
    background: rgba(19, 139, 79, 0.2) !important;  /* чуть темнее при наведении */
}

.woocommerce-tabs .tabs li a:hover {
    color: #138B4F !important;
    background: transparent !important;
}

/* Скрываем счётчик отзывов (цифру в скобках) */
.woocommerce-tabs .tabs li.reviews_tab a span {
    display: none !important;
}

/* ===== БЕЙДЖ "АКЦИЯ" ===== */

/* Меняем "Распродажа!" на "Акция" */
.onsale {
    font-size: 0 !important; /* Скрываем старый текст */
    background: #f8d7da !important; /* Светло-красный */
    color: #721c24 !important; /* Темно-красный для контраста */
    border-radius: 50% !important; /* Круглый */
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: 3px solid #f5c6cb !important; /* Обычная граница */
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 10 !important;
}

/* Добавляем текст "Акция" */
.onsale::before {
    content: 'Акция' !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #721c24 !important;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .onsale {
        width: 60px !important;
        height: 60px !important;
        top: 5px !important;
        left: 5px !important;
    }
    .onsale::before {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .onsale {
        width: 50px !important;
        height: 50px !important;
        top: 3px !important;
        left: 3px !important;
    }
    .onsale::before {
        font-size: 10px !important;
    }
}

/* Цена товара */
/* Основной стиль для цены */
.woocommerce-Price-amount.amount {
    font-size: 2rem;
    font-weight: 300;
    color: #2c3e50;
    font-family: 'Segoe UI', Arial, sans-serif;
    letter-spacing: 0.5px;
}

/* Стиль для валюты */
.woocommerce-Price-currencySymbol {
    font-size: 1.5rem;
    font-weight: 300;
    color: #3498db;
    margin-left: 0.125rem;
}

/* Старая цена - скрываем валюту, цвет насыщенный серый */
.price del .woocommerce-Price-amount.amount {
    font-size: 1.375rem;
    font-weight: 500;
    color: #000; /* Насыщенный серый */
    text-decoration: line-through;
}

/* Убираем подчёркивание у самого del */
.price del {
    text-decoration: none;
}

.price del .woocommerce-Price-currencySymbol {
    display: none; /* Скрываем валюту у старой цены */
}

/* Акционная цена - увеличенная толщина */
.price ins .woocommerce-Price-amount.amount {
    font-size: 2rem;
    font-weight: 500; /* Увеличил толщину */
    color: #e74c3c;
    text-decoration: none;
}

.price ins {
    text-decoration: none;
}

/*====================
Размер шрифта Описание и Апсейл
======================= */

/* Для секции up-sells, описания товара и заголовка отзывов */
.up-sells.upsells.products > h2,
#tab-description > h2,
.woocommerce-Reviews-title {
    font-size: 1.5rem !important;
    font-family: 'Arial', 'Helvetica Neue', sans-serif !important;
}

/* ====== КОРЗИНА ==== */
/*отступ сверху на странице корзины */
.wp-block-woocommerce-cart.alignwide {
    margin-top: 2rem !important;
}

/* скрыть текст в списке товаров*/
.wc-block-components-product-metadata__description {
    display: none !important;
}