/*
Theme Name: Моя дочерняя тема
Theme URI: https://example.com
Description: Дочерняя тема для сайта
Author: Andrey
Author URI: https://example.com
Template: storefront
Version: 1.0
*/



/* Позиционирование телефона на десктопах */
@media (min-width: 768px) {

    .header-phone-number {
        margin-left: auto; /* Сдвигает телефон в правую часть шапки */
        font-size: 16px;
        font-weight: bold;
    }
    
    /* Корректируем строку поиска, чтобы она оставалась на месте */
    .site-header .site-search {
        margin-left: 0 !important;
        clear: none !important;
    }
}

/* Оформление ссылки телефона */
.header-phone-number a {
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-phone-number a:hover {
    color: #96588a; /* Цвет при наведении (фирменный цвет Storefront) */
}


/* Баннер на всю ширину */
.full-width-hero {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 450px; /* Минимальная высота баннера */
    display: flex;
    align-items: center;
}

/* Ограничитель контента (выравнивает текст по сетке сайта) */
.hero-container {
    max-width: 1080px; /* Стандартная ширина контента Storefront */
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center; /* Смещает блок с текстом вправо */
    z-index: 1;
}

/* Белый блок с текстом справа */
.hero-content-block {
    /* background: rgba(255, 255, 255, 0.95);  */
    padding: 40px;
    max-width: 450px;
    border-radius: 4px;
    text-align: center;
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.1); */
}

/* Стили текста и кнопки */
.hero-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 500;
}

.hero-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #fff;
}

.hero-button {
    display: inline-block;
    background-color: #1e73be; /* Фирменный фиолетовый цвет Storefront */
    color: #ffffff !important;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.hero-button:hover {
    background-color: #197fd8;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 767px) {
    .full-width-hero {
        padding: 40px 0;
        margin-bottom: 30px;
    }
    .hero-container {
        justify-content: center; /* На мобильных центрируем текст */
    }
    .hero-content-block {
        max-width: 100%;
        padding: 20px;
    }
    .hero-title { font-size: 24px; }
}


.home.blog .site-header, .home.page:not(.page-template-template-homepage) .site-header, .home.post-type-archive-product .site-header{
    margin-bottom: 0px;
}


.site-content{
    margin-top: 50px;
}

.full-width-hero::before {
    content: "";
    position: absolute;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 1, 0.3) 70%,
        rgba(0, 0, 0, 0.2) 100%
        );
    z-index: 1;
    min-height: 450px;
    width: 100%;
}

/* =========================================
   WooCommerce — страница аккаунта
   ========================================= */

.woocommerce-account .woocommerce {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Заголовок страницы */
.woocommerce-account .entry-title,
.woocommerce-account h1 {
    text-align: center;
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 45px;
}

/* Контейнер форм */
.woocommerce-account .u-columns {
    max-width: 520px;
    margin: 0 auto;
}

/* Скрываем регистрацию по умолчанию */
.woocommerce-account .u-column2 {
    display: none;
}

/* Login */
.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    width: 100% !important;
    float: none !important;
}

/* Заголовки */
.woocommerce-account h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 25px;
}

/* Поля */
.woocommerce-account .form-row {
    margin-bottom: 20px;
}

.woocommerce-account label {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.woocommerce-account input.input-text {
    width: 100%;
    height: 52px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 16px;
    box-sizing: border-box;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.woocommerce-account input.input-text:focus {
    border-color: #111;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

/* Кнопка */
.woocommerce-account button.button {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.woocommerce-account button.button:hover {
    background: #333;
}

/* Ссылка восстановления */
.woocommerce-account .woocommerce-LostPassword {
    text-align: center;
    margin-top: 20px;
}

.woocommerce-account .woocommerce-LostPassword a {
    color: #111;
    text-decoration: underline;
}

/* Регистрация */
.woocommerce-account .u-column2 {
    margin-top: 0;
}

/* Мобильная версия */
@media (max-width: 600px) {

    .woocommerce-account .woocommerce {
        margin: 30px auto;
        padding: 0 15px;
    }

    .woocommerce-account .entry-title,
    .woocommerce-account h1 {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .woocommerce-account h2 {
        font-size: 24px;
    }
}

/* =========================================
   WooCommerce My Account — исправление
   центрирования формы
   ========================================= */

@media (min-width: 768px) {

    /* Основной контейнер аккаунта */
    body.woocommerce-account .u-columns {
        width: 100% !important;
        max-width: 720px !important;
        margin: 0 auto !important;
        padding: 0 !important;

        float: none !important;
        box-sizing: border-box !important;
    }

    /* Колонки WooCommerce */
    body.woocommerce-account .u-columns .u-column1,
    body.woocommerce-account .u-columns .u-column2 {
        width: 100% !important;
        max-width: 720px !important;

        margin: 0 auto !important;
        padding: 0 !important;

        float: none !important;

        box-sizing: border-box !important;
    }

    /* Убираем влияние col-1 / col-2 */
    body.woocommerce-account .u-columns .col-1,
    body.woocommerce-account .u-columns .col-2 {
        width: 100% !important;
        max-width: 720px !important;

        margin-left: auto !important;
        margin-right: auto !important;

        float: none !important;
        box-sizing: border-box !important;
    }

    /* Переключатель */
    body.woocommerce-account .account-tabs {
        width: 100% !important;
        max-width: 720px !important;

        margin: 0 auto 35px auto !important;

        box-sizing: border-box !important;
    }

}


/* =========================================
   Поля формы
   ========================================= */

body.woocommerce-account .u-column1 .form-row,
body.woocommerce-account .u-column2 .form-row {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.woocommerce-account input.input-text {
    width: 100% !important;
    box-sizing: border-box !important;
}


/* =========================================
   Мобильная версия
   ========================================= */

@media (max-width: 767px) {

    body.woocommerce-account .u-columns,
    body.woocommerce-account .u-column1,
    body.woocommerce-account .u-column2 {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account .account-tabs {
        width: 100% !important;
        max-width: 100% !important;
    }

}