/*
Theme Name: My Theme
Author: You
Version: 1.0
*/

/* =========================
   GLOBAL
========================= */

/* =========================
   GLOBAL LINK COLOR
========================= */

/* все ссылки */
a,
a:visited,
a:active {
    color: #160A0A !important;
    text-decoration: none;
}

/* hover */
a:hover {
    color: #160A0A !important;
    opacity: 0.8;
}

/* WooCommerce кнопки и ссылки */
.woocommerce a {
    color: #160A0A !important;
}

/* фильтры */
.shop-sidebar a {
    color: #160A0A !important;
}

/* карточки товаров */
.product-card a {
    color: #160A0A !important;
}

/* телефон / контакты */
a[href^="tel"] {
    color: #160A0A !important;
}

/* breadcrumbs */
.woocommerce-breadcrumb a {
    color: #160A0A !important;
}


/* ===== BREADCRUMBS SIZE FIX ===== */

.woocommerce .woocommerce-breadcrumb {
    font-size: 20px !important;
    font-weight: 500;
    margin-bottom: 15px;
}

.woocommerce .woocommerce-breadcrumb a {
    font-size: 20px !important;
}


/* === FONTS === */

@font-face {
    font-family: 'Sofia Sans Semi Condensed';
    src: url('/wp-content/themes/my-theme/fonts/SofiaSansSemiCondensed-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Sofia Sans Semi Condensed';
    src: url('/wp-content/themes/my-theme/fonts/SofiaSansSemiCondensed-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}


body {
    margin: 0;
    font-family: 'Sofia Sans Semi Condensed', sans-serif;
    background: #FFF;
}

/* контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* =========================
   ЗАГОЛОВКИ
========================= */

.page-title {
    font-size: 28px;
    margin-bottom: 30px;
}

/* =========================
   КАТЕГОРИИ / ТОВАРЫ
========================= */

.woocommerce ul.products {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce ul.products li.product {
    margin-bottom: 30px;
}

.woocommerce ul.products li.product img {
    width: 100%;
}

/* =========================
   SINGLE PRODUCT (СТАНДАРТ)
========================= */

.woocommerce div.product {
    max-width: 1000px;
    margin: 0 auto;
}

/* Woo сам делает float, мы не мешаем */

/* цена */
.woocommerce div.product .price {
    font-size: 20px;
    margin: 10px 0;
}

/* кнопка */
.woocommerce div.product button.single_add_to_cart_button {
    padding: 10px 20px;
    cursor: pointer;
}

/* табы */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 40px;
}

/* =========================
   АДАПТИВ
========================= */

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
}

/* =========================
   FIX ГЛАВНОЙ (категории)
========================= */

.cat-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.cat-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.cat-card h2 {
    font-size: 18px;
    padding: 15px;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-category {
    list-style: none;
}

.product-category a {
    display: block;
    text-decoration: none;
    background: #f5f6f8;
    padding: 20px;
    border-radius: 12px;
    transition: 0.3s;
}

.product-category a:hover {
    transform: translateY(-5px);
}

.product-category img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-category h2 {
    margin-top: 15px;
    font-size: 18px;
    color: #111;
}

.product-category {
    list-style: none;
}

/* КАРТОЧКА */
.product-category a {
    display: block;
    background: #FFF6F6;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: 0.3s;
}

.product-category a:hover {
    transform: translateY(-5px);
}

/* КАРТИНКА */
.product-category img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* ТЕКСТ */
.product-category h2 {
    padding: 15px;
    font-size: 18px;
    color: #111;
}

/* =========================
   ГЛАВНАЯ (3 колонки)
========================= */

.home .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/*  ГЛАВНАЯ — 1 колонка на мобилке */
@media (max-width: 768px) {
    .home .grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================
   КАТЕГОРИИ (2 колонки)
========================= */

.tax-product_cat .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ================= HEADER ================= */

/* HEADER */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LEFT */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: #000;
}

/* MENU */
.main-menu ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu a {
    text-decoration: none;
    color: #111;
    font-size: 14px;
}

/* RIGHT */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon {
    text-decoration: none;
    font-size: 18px;
}

/* BURGER */
.burger {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
}

@media screen and (orientation: landscape) and (max-width: 1024px) {

    .header-top {
        display: none !important;
    }

    .main-menu {
        display: none !important;
    }

    .header-bottom .header-container {
        position: relative;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 15px;
    }

    .burger {
        display: block !important;
        font-size: 24px;
        z-index: 2;
    }

    .header-bottom .logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0;
        z-index: 1;
    }

    .mobile-right {
        display: flex !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        gap: 10px;
        align-items: center;
    }
}

/* =========================
   HERO (FULL WIDTH)
========================= */

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
	height: 60vw;        /* стабильная высота */
    max-height: 824px;   /* ограничение */
    min-height: 400px;   /* минимум */
}

/* ФОН НА ВСЮ ШИРИНУ */
.hero__bg {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;

    z-index: 1;
}

/* КОНТЕНТ ПОВЕРХ */
.hero__content {
    position: relative;
    z-index: 2;

    max-width: 1200px;
    margin: 0 auto;

    padding-top: 200px;
    padding-left: 20px;
    padding-right: 20px;
}


/* ЗАГОЛОВОК */

.hero__content h1 {
    font-family: 'Sofia Sans Semi Condensed', sans-serif;
    font-size: clamp(32px, 6vw, 73px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 8px;

    max-width: none;      
    white-space: nowrap;   
    color: #160A0A;
    text-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero__content p {
    font-family: 'Sofia Sans Semi Condensed', sans-serif;
    font-size: 60px;
    font-weight: 300;
    line-height: 1.5;
    color: #fff;
    margin: 0; /* убрали стандартный отступ */
}





/* херо десктоп и мобил */


.hero {
    position: relative;
    width: 100%;
}

/* картинка */
.hero__img {
    width: 100%;
    display: block;
}

/* скрываем мобилку */
.hero__img.mobile {
    display: none;
}

/* текст поверх */
.hero__content {
    position: absolute;
    top: 0;
    left: 150px;
    z-index: 2;
}




/*  мобил фото */

@media (max-width: 768px) {

    .hero {
        height: auto;       
    }

    .hero__img {
        position: relative; 
        height: auto;
        object-fit: contain; 
    }

    /* скрываем десктоп */
    .hero__img.desktop {
        display: none;
    }

    /* показываем мобилку */
    .hero__img.mobile {
        display: block;
    }

    /* текст поверх картинки */
    .hero__content {
        position: absolute;
        top: 20px;
        left: 20px;
        right: 20px;
        z-index: 2;
    }

}
/*Регулировка текста в мобилке*/

@media (max-width: 768px) {

    .hero__content h1 {
        font-family: 'Cormorant Garamond', serif !important;
        font-weight: 600;
        font-size: 52px;
        color: #160A0A; /* почти чёрный */
       
    }

    .hero__content p {
        font-family: 'Cormorant Garamond', serif !important;
        font-style: italic;
        font-size: 22px;
        color: #ffffff;
        
    }

}



@media (max-width: 1024px) {
    .hero__content {
        padding-top: 180px;
    }
}

@media (max-width: 768px) {
    .hero__content {
        padding-top: 80px;
    }
}



@media (max-width: 1024px) {
    .hero__content h1 {
        white-space: normal !important;
        max-width: 280px;
    }

    .hero__content p {
        font-size: 22px !important;
        line-height: 1.4;
    }
}

/* планшет + лежачая */
@media screen and (max-width: 1024px) and (orientation: landscape) {

    .hero__content {
        transform: translateY(-130px);
    }

    .hero__content h1 {
        font-size: clamp(50px, 6vw, 60px);
    }

    .hero__content p {
        font-size: clamp(28px, 3vw, 36px) !important;
    }
}



/* планшет + горизонталь */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .hero {
        height: 500px !important;
    }
}

/* =========================
   ABOUT TEXT BLOCK
========================= */

.about {
    padding: 10px 0;
    text-align: left;
}

.about__title {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
}

.about__text {
    width: 100%;
    margin-bottom: 15px;
    font-size: 17px;
    line-height: 1.7;
    color: #444;
}

/* дополнительный отступ между абзацами */
.about p {
    margin-bottom: 18px;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    background: #f1b9ca;
    padding: 80px 0;
    border-top: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: 1fr auto auto; 
    gap: 120px; /* увеличили расстояние */
    align-items: start;
}

/* логотип */
.footer-logo .logo {
    font-size: 26px;
    font-weight: 600;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* список */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #555;
    text-decoration: none;
}

.footer-menu a:hover {
    color: #000;
}

/* контакты */
.footer-col p {
    margin-bottom: 8px;
    color: #555;
}

/* соц */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}


/* адаптив */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ================= HEADER ================= */

.site-header {
    background: #fff;
}

/* контейнер */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== TOP ===== */

.header-top {
    border-bottom: 1px solid #eee;
}

.header-top .header-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 40px;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* ===== BOTTOM ===== */

.header-bottom .header-container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    height: 70px;
}

/* LOGO */
.logo {
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: #000;
}

/* MENU */
.main-menu {
    display: flex;
    justify-content: flex-end; /* вправо */
    justify-self: end; /*  прижали к правому краю */
}

.main-menu ul {
    display: flex;
    gap: 40px; /* 👉 как в макете */
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu a {
    text-decoration: none;
    color: #111;
    font-size: 16px; /* увеличили */
    font-weight: 500;
    transition: 0.3s;
}

/* hover эффект */
.main-menu a:hover {
    opacity: 0.7;
}

/* ===== UI ===== */

.phone {
    font-size: 14px;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon img {
    width: 25px;
    height: 25px;
}

/* cart badge */
.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: red;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* ===== MENU HOVER ===== */

.main-menu a {
    position: relative;
    text-decoration: none;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

.main-menu a:hover {
    background: #f4caca;
}

/*  активный пункт меню (WordPress сам добавляет класс) */
.main-menu .current-menu-item > a {
    background: #F3D2E1;
}

.wp-block-woocommerce-product-new {
    display: none !important;
}

.product-category img,
.cat-card img,
.woocommerce ul.products li.product img {
    object-fit: contain !important;
    height: auto !important;
    background: #fff;
}

/*  аккардион */

.filter-block {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
}

/* заголовок */
.filter-title {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 30px; /* место под + */
}

/* плюс / минус */
.filter-title::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);

    font-size: 24px; 
    font-weight: 400;
}

/* открыто */
.filter-block.active .filter-title::after {
    content: "−"; /* красивый минус (не дефис) */
}

/* контент */
.filter-content {
    display: none;
    margin-top: 15px;
}

.filter-block.active .filter-content {
    display: block;
}

/* сайдбар */
.shop-sidebar {
    width: 260px;
    flex-shrink: 0;
}
/* =========================
   FILTER BLOCK
========================= */

.filter-block {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.filter-title {
    position: relative;
    cursor: pointer;
    font-weight: 600;
    padding-right: 20px;
}

.filter-title::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
}

.filter-block.active .filter-title::after {
    content: "-";
}

.filter-content {
    display: none;
    margin-top: 10px;
}

.filter-block.active .filter-content {
    display: block;
}

/* =========================
   PRICE FILTER
========================= */

.widget_price_filter {
    margin-top: 0;
}

.price_slider {
    background: #eee;
    height: 4px;
    border-radius: 2px;
}

.price_slider .ui-slider-range {
    background: #000;
}

.price_slider .ui-slider-handle {
    width: 14px;
    height: 14px;
    background: #000;
    border-radius: 50%;
    top: -5px;
}

.price_slider_amount {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ❌ УБИРАЕМ КНОПКУ */
.price_slider_amount button {
    display: none !important;
}

/* цена */
.price_label {
    font-size: 14px;
}


/* =========================
   PRICE SLIDER FIX
========================= */

.price_slider {
    position: relative;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin-top: 15px;
}

/* линия между значениями */
.price_slider .ui-slider-range {
    background: #000;
    height: 100%;
    position: absolute;
}

/*  КРУЖКИ (handles) */
.price_slider .ui-slider-handle {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #000;
    border-radius: 50%;
    top: -7px;
    cursor: pointer;
    z-index: 2;
}

/* при наведении */
.price_slider .ui-slider-handle:hover {
    background: #FFF6F6;
}

/*  ПОДПИСЬ ЦЕНЫ */
.price_label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 10px;
}

/* выделим значения */
.price_label span {
    font-weight: 600;
}


.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
}

.product-card h2 {
    font-size: 16px;
    margin: 10px 0;
    color: #111;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 4 карты */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-image {
    display: block;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 220px;
    object-fit: contain;
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
}

.product-title {
    font-size: 14px;
    margin: 10px 0;
    color: #111;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
}

.product-stock {
    color: green;
    font-size: 13px;
    margin: 5px 0;
}

.product-btn a {
    display: inline-block;
    background: orange;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
}

/* ЗАДАЁМ НУЖНЫЙ ФОН КАРТОЧКЕ */
.product-card {
    background: #FFF6F6 !important;
    border-radius: 12px;
    padding: 20px;
}

/*  КАРТИНКА НА БЕЛОМ */
.product-image {
    background: #fff !important;
    border-radius: 10px;
    padding: 10px;
}

/*  УБИРАЕМ ФОН У ССЫЛКИ */
.product-card a {
    background: transparent !important;
}

/*  УБИРАЕМ СТИЛИ WOO ВНУТРИ */
.woocommerce ul.products li.product {
    background: transparent !important;
}

/*  если вдруг есть скрытые блоки */
.woocommerce ul.products li.product > *:not(.product-image) {
    background: transparent !important;
}


/* =========================
   MOBILE SHOP 
========================= */

@media (max-width: 768px) {

    
    .shop-layout {
        flex-direction: column !important;
    }

    /*  ФИЛЬТРЫ ВВЕРХ */
    .shop-sidebar {
        width: 100% !important;
        order: -1; /* 👉 поднимаем вверх */
        margin-bottom: 20px;
    }

    /*  2 КОЛОНКИ ТОВАРОВ */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    /*  КАРТОЧКА КОМПАКТНЕЕ */
    .product-card {
        padding: 10px;
    }

    .product-image img {
        height: 150px;
    }

    .product-title {
        font-size: 13px;
    }

    .product-price {
        font-size: 14px;
    }

    .product-btn a {
        padding: 8px;
        font-size: 13px;
        width: 100%;
        text-align: center;
    }
}
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {

    /* скрываем верх и меню */
    .header-top {
        display: none;
    }

    .main-menu {
        display: none;
    }

    /* контейнер */
    .header-bottom .header-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 15px;
    }

    /* бургер */
    .burger {
        display: block;
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 2;
    }

    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        z-index: 1;
    }

}

/* скрыта на десктопе */
.mobile-cart {
    display: none;
}

@media (max-width: 768px) {

    .header-bottom .header-container {
        position: relative;
    }

    /* корзина справа */
    .mobile-cart {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-cart img {
        width: 20px;
        height: 20px;
    }

    .mobile-cart .cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        background: black;
        color: #fff;
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 50%;
    }

}

/* скрыто на десктопе */
.mobile-right {
    display: none;
}

@media (max-width: 768px) {

    .header-bottom .header-container {
        position: relative;
    }

    /* правый блок */
    .mobile-right {
        display: flex;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        gap: 5px;
        align-items: center;
    }

    .mobile-right .icon img {
        width: 30px;
        height: 30px;
    }

    .cart {
        position: relative;
    }

    .cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        background: black;
        color: #fff;
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 50%;
    }

}

/* ======== MOBILE MENU ====== */

.mobile-menu {
    position: fixed;
    top: 100px;
    left: -100%;
    width: 50%;
    max-width: 320px; 
    height: 45vh;
    background: #fff;
    z-index: 9999;
    padding: 30px 20px;
    transition: 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1); /* тень */
}

.mobile-menu.active {
    left: 0;
}

/* список */
.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 20px;
}

.mobile-menu-list a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    font-weight: 500;
}

/* бургер */
.burger {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* ========== OVERLAY (затемнение) ==== */

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* скрыть на десктопе */
@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }

    .mobile-overlay {
        display: none !important;
    }
}

.mobile-close {
    position: absolute;
    top: 15px;
    right: 15px;

    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* родитель */
.main-menu ul li {
    position: relative;
}

/* подменю скрыто */
.main-menu ul li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    background: #F3D2E1;
    padding: 15px 20px;

    flex-direction: column;
    gap: 10px;

    border-radius: 10px;
    z-index: 1000;
}

/* показать при наведении */
.main-menu ul li:hover > .sub-menu {
    display: flex;
}


/* показать подменю при клике */
.mobile-menu .open > .sub-menu {
    display: block;
}

.mobile-menu .sub-menu {
    display: none;
}

.mobile-menu .open > .sub-menu {
    display: block;
}

.mobile-menu .sub-menu {
    list-style: none;
    padding-left: 10px;
}

.mobile-menu .sub-menu li {
    margin-bottom: 10px;
}


.mobile-menu .menu-item-has-children > a::after {
    content: "▾";
    margin-left: auto;
}

.mobile-menu .open > a::after {
    transform: rotate(180deg);
}

/* текст меняется, фон нет */
.main-menu .sub-menu li a {
    background: transparent !important;
    transition: color 0.2s ease;
}

.main-menu .sub-menu li a:hover {
    background: transparent !important;
    color: #fff !important; /* белый текст */
}

/* десктоп */
.subcategories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* планшет */
@media (max-width: 1024px) {
    .subcategories {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* мобилка */
@media (max-width: 768px) {
    .subcategories {
        grid-template-columns: 1fr;
    }
}

/* поле количества */
.single-product form.cart .quantity input {
    width: 70px;
    height: 30px;
    text-align: center;
    font-size: 16px;
}


/*Регулировка заголовков новинок и акций на главной*/





.section-title {
    font-size: 22px;
    font-weight: 600;
}

.home-section {
    margin-bottom: 60px;
}


/* 🔥 ФИКС ЦЕНЫ ВЕЗДЕ (главная + related + каталог) */
.woocommerce ul.products li.product .price,
.product-price {
    color: #111 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}



/* карточка */
.product-card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    transition: 0.3s;
}

/* картинка */
.product-card img {
    width: 100%;
    display: block;
}

/* заголовок */
.product-title {
    margin-top: 10px;
    font-size: 14px;
}

/* цена */
.product-price {
    margin-top: 5px;
    font-weight: 600;
}

/* блок кнопки */
.product-btn-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* КНОПКА КУПИТЬ */
.product-btn-row .button {
    display: inline-block;
    padding: 10px 15px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

/* hover */
.product-btn-row .button:hover {
    background: #333;
}

/* сердце */
.product-fav {
    cursor: pointer;
    font-size: 18px;
}

/* сетка */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}



.fav-notice {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #000;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
    z-index: 9999;
    pointer-events: none;
}

.fav-notice.show {
    opacity: 1;
    transform: translateY(0);
}


/* цвет для главной АКЦИОННАЯ ЦЕНА (НОВАЯ) */
.product-price ins {
    color: #e60023; /* стандартный магазинный красный */
    font-weight: 700;
    text-decoration: none;
}



/* АКЦИОННАЯ ЦЕНА (НОВАЯ) */
.woocommerce div.product .price ins {
    color: #ff0000 !important; /* чисто красный */
    text-decoration: none;
}

/* СТАРАЯ ЦЕНА */
.woocommerce div.product .price del {
    color: #999 !important;
}



.sale-badge.single {
    position: absolute;
    top: 20px;
    left: 20px;

    display: inline-block; 
    width: auto;           

    background: #000;
    color: #fff;

    padding: 6px 10px;
    font-size: 14px;
    font-weight: 600;

    border-radius: 4px;
    z-index: 10;
}
.sale-badge.single {
    max-width: max-content;
}


/* контейнер цены */

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* старая цена */
.product-price del {
    font-size: 14px;
    color: #999;
}

/* новая цена */
.product-price ins {
    color: red;
    font-weight: 600;
    text-decoration: none;

    display: block;      /* перенос на новую строку */
    margin-top: 2px;
}

/* сам текст цены */
.product-price bdi {
    white-space: nowrap; /* чтобы 1000,00 ₴ не ломалось */
}

/* перечеркивание цены */
.price-wrap {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.price-new {
    color: red;
    font-size: 18px;
    font-weight: 700;
}

.price-normal {
    color: #000;
    font-size: 18px;
    font-weight: 700;
}

.fav-icon {
    position: relative;
}

.fav-count {
    position: absolute;
    top: -5px;
    right: -8px;

    background: #160A0A;
    color: #fff;

    font-size: 11px;
    font-weight: 600;

    width: 16px;
    height: 16px;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==CONTACTS =*/

.contacts-page {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    width: 100%;
    max-width: 1700px;

    margin: 0 auto;
    padding: 120px 80px 80px;

    gap: 120px;

    box-sizing: border-box;
}

/* левая колонка */
.contacts-left {
    width: 38%;
}

/* правая колонка */
.contacts-right {
    width: 62%;
    margin-top: 0 !important;
}

/* заголовок */
.contacts-left h2 {
    font-size: 64px;
    margin-bottom: 50px;
    font-weight: 700;
}

/* текст */
.contacts-left p {
    font-size: 28px;
    line-height: 1.9;
    margin-bottom: 25px;
}

/* label */
.contacts-right p {
    margin: 0 0 8px 0 !important;
}

.contacts-right label {
    display: block;
    font-size: 15px;
    margin-bottom: -8px;
}

/* верхние поля */
.contacts-right input:not([type="submit"]) {
    width: 100%;
    max-width: 900px;

    padding: 8px;
    font-size: 22px;

    border: 1px solid #ddd;
    border-radius: 10px;

    box-sizing: border-box;

    margin-bottom:0;
}

/* textarea */
.contacts-right textarea {
    width: 100%;
    max-width: 900px;

    height: 100px;

    padding: 22px;
    font-size: 22px;

    border: 1px solid #ddd;
    border-radius: 10px;

    box-sizing: border-box;
}

/* кнопка */
.contacts-right input[type="submit"] {

    width: 260px;

    background: #e8a4ad;
    color: #fff;

    border: none;
    border-radius: 10px;

    padding: 20px;
    font-size: 24px;

    cursor: pointer;
    transition: 0.3s;

    display: block;
    margin-top: 25px;
    margin-left: auto;
}

.contacts-right input[type="submit"]:hover {
    background: #d87f8a;
}

/* форма */
.contacts-right .wpcf7 {
    margin-top: 0;
}

/* мобилка */
@media (max-width: 768px) {

    .contacts-page {
        flex-direction: column;
        gap: 50px;

        padding: 60px 20px;
    }

    .contacts-left,
    .contacts-right {
        width: 100%;
    }

    .contacts-left h2 {
        font-size: 40px;
    }

    .contacts-left p {
        font-size: 20px;
    }

    .contacts-right label {
        font-size: 20px;
    }

    .contacts-right input,
    .contacts-right textarea {
        max-width: 100%;
        font-size: 16px;
        padding: 16px;
    }

    .contacts-right textarea {
        height: 180px;
    }

    .contacts-right input[type="submit"] {
        width: 100%;
        font-size: 18px;
        padding: 16px;
    }

}


/*настройка поиска*/

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);

    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.search-overlay.active {
    display: flex;
    pointer-events: auto
}

.search-overlay input {
    width: 90%;
    max-width: 500px;
    padding: 15px;
    font-size: 18px;
    border-radius: 10px;
    border: none;
    outline: none;
}


.mobile-search {
    background: none;
    border: none;
    padding: 0;
}





.mobile-right {
    z-index: 10;
}

.logo {
    z-index: 1;
}




/* === FIX SEARCH CLICK === */

/* сама кнопка поиска */
.search-toggle,
.mobile-search {
    position: relative;
    z-index: 2000;
    cursor: pointer;
}

/* обертка */
.search-wrapper {
    position: relative;
    z-index: 2000;
}

/* меню опускаем ниже */
.main-menu {
    position: relative;
    z-index: 1;
}

/* ===== ACCOUNT NORMAL UI ===== */

.account-page .woocommerce {
    display: flex;
    gap: 40px;
}

/* меню */
.woocommerce-MyAccount-navigation {
    width: 250px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 10px;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    color: #111;
}

/* активный */
.woocommerce-MyAccount-navigation .is-active a {
    background: #f4caca;
}

/* контент */
.woocommerce-MyAccount-content {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
}

.woocommerce-MyAccount-navigation a {
    transition: 0.2s;
}

.woocommerce-MyAccount-navigation a:hover {
    transform: translateX(5px);
}

.woocommerce-MyAccount-navigation .is-active a {
    background: #f4caca;
    font-weight: 600;
}

/* центр всей страницы аккаунта */
.account-page {
    min-height: auto;
    display: block;
}

/* форма */
.woocommerce form.login {
    width: 400px;
    max-width: 90%;
}

/* УБИРАЕМ СМЕЩЕНИЕ СЛЕВА */
.woocommerce {
    margin: 0 auto;
}

/* крошки внутреннихстр.*/
.custom-breadcrumbs {
    margin-bottom: 25px;
    font-size: 20px;
    color: #777;
}




.logo img{
    max-height:70px;
    width:auto;
    display:block;
}