/*
Theme Name: Storefront Child
Theme URI: https://example.com/storefront-child
Description: Child theme для Storefront
Author: Konstantin T.
Author URI: https://example.com
Template: storefront
Version: 1.0.0
Text Domain: boxkz
*/

/* Подключение стилей родителя */
@import url("../storefront/style.css");


/* =========================================
   ROBOTO
   Основной шрифт сайта
========================================= */

@font-face {
    font-family: 'Roboto';
    src: url('../boxkz/fonts/roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../boxkz/fonts/roboto/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../boxkz/fonts/roboto/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../boxkz/fonts/roboto/Roboto-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}


/* =========================================
   MONTSERRAT
   Заголовки и акцентные элементы
========================================= */

@font-face {
    font-family: 'Montserrat';
    src: url('../boxkz/fonts/montserrat/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../boxkz/fonts/montserrat/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../boxkz/fonts/montserrat/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../boxkz/fonts/montserrat/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}



html body{background-color: #FFF; color: #1A1A1A;}
a:focus, input:focus, textarea:focus, button:focus{outline: none !important;}
html a {color: #b58282;}

/* ====== Основные шрифты ====== */
h1, h2, h3, h4, h5, h6, body, button, input, textarea { font-family: 'Roboto', Arial, sans-serif; }
a, span, div { font-family: Roboto; }
p { font-family: Montserrat; }

a:focus, input:focus, textarea:focus, button:focus { outline: none; }
a:hover, .hentry .entry-content a { text-decoration: none !important; }

.col-full { max-width: 85% !important; margin-left: auto !important; margin-right: auto !important;}
#main header.entry-header{padding-top: 20px;}
/* ====== Header ====== */
#masthead {
    border: 0;
	
	border-bottom: 1px solid #EEEEEE;
    padding: 0;
    font-size: 24px;
    line-height: 50px;
    height: 80px;
    width: 100%;
    text-align: left;
    z-index: 9999;
    margin-bottom: 0;
}

#masthead .col-full {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2.617924em;
    box-sizing: content-box;
    height: 80px;
}

#masthead .site-branding {margin-bottom: 0px;}
#masthead .site-title{font-size: 1.5em;}
#masthead .site-branding .site-description{line-height: initial;}

.storefront-breadcrumb .woocommerce-breadcrumb a{text-decoration: none;}

/* Навигация */
#site-navigation .primary-navigation,
#site-navigation .main-navigation ul.menu,
.main-navigation ul.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#site-navigation .menu{flex: 1;}

.main-navigation ul.menu, .main-navigation ul.nav-menu{margin-left: 0px !important;}
.storefront-primary-navigation{display: none;}
.primary-navigation-wrapper {
    display: flex;
	width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
    flex-wrap: wrap;
    transition: all .3s ease;
}
.primary-navigation-wrapper.col-full{
	background-color: rgb(232 218 215 / 82%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    transition: all .3s ease;
}
.dgwt-wcas-search-input{background: transparent !important; border-color: #eeeeee !important; border: 1px !important;}
.site{overflow-x: visible !important;}

.primary-navigation-wrapper.scrolled {
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    padding-top: 5px;
    padding-bottom: 5px;
	transition: all .3s ease;
}

.primary-navigation-wrapper.scrolled .main-navigation ul li a {
    padding: 10px 12px;
}

.primary-navigation-wrapper nav.main-navigation {
    display: flex;
    flex: 1 1 70%;
}

.primary-navigation-wrapper nav.main-navigation ul.menu li {
    /* margin-right: 25px; */

}


.primary-navigation-wrapper nav.main-navigation ul.menu li {
  position: relative;
  text-decoration: none; /* Убираем стандартное подчеркивание */
  color: #b58282;
  display: inline-block;
}

.primary-navigation-wrapper nav.main-navigation ul.menu li::after {
  content: '';
  position: absolute;
  width: 0; /* Исходная ширина 0 */
  height: 5px; /* Толщина линии */
  bottom: 0;
  left: 0;
  background-color: #b58282; /* Цвет линии */
  transition: width 0.3s ease; /* Плавность анимации */
}

.primary-navigation-wrapper nav.main-navigation ul.menu li:hover::after, .primary-navigation-wrapper nav.main-navigation ul.menu li.current-menu-item:after {
  width: 100%; /* При наведении 100% */
}


.primary-navigation-wrapper nav.main-navigation ul.menu li a,
.site .main-navigation ul.menu>li>a,
.main-navigation ul.nav-menu>li>a {
    text-decoration: none;
    color: #493B3B !important;
	transition: color .25s ease;
    font-weight: 400;
    padding: 10px 0;
    font-size: 15px;
    line-height: 1em;
    
}

.primary-navigation-wrapper nav.main-navigation ul.menu li a:hover,
.primary-navigation-wrapper nav.main-navigation ul.menu li.current-menu-item a {
    color: #000;
	font-weight: 500;
}



/* Иконки справа */
.primary-navigation-wrapper .header-icons {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 15px;
}

.primary-navigation-wrapper .header-icons a {
    text-decoration: none;
    color: #493B3B;
    font-size: 24px;
    position: relative;
	padding: 0;
}

.primary-navigation-wrapper .header-icons .cart-count {
    position: absolute;
    top: 18px;
    right: -8px;
	display: inline-block;
    background: #ffffffc2;
    color: #000000;
    font-weight: bold;
    font-size: 11px;
    padding: 0px 5px;
    border-radius: 4px;

}

/* Социальные иконки */
.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.social {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.social:hover { transform: translateY(-3px); }

.insta {}
.telegram {}
.whatsapp {}

/* Админ-бар */
body.admin-bar .primary-navigation-wrapper { top: 32px; }

/* ====== Основная обёртка ====== */
.site-wrapper { display: flex; min-height: 100vh; overflow: hidden; }

/* Левый aside */
.sidebar-left {
    flex: 0 0 250px;
    background: #f7f7f7;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar-left .logo img { max-width: 100%; height: auto; }

.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.sidebar-menu-list li { margin-bottom: 15px; }

.sidebar-menu-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* Основной контент */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Правый aside */
.sidebar-right {
    flex: 0 0 80px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    position: sticky;
    top: 0;
}

.icon-button {
    display: block;
    margin: 10px 0;
    text-decoration: none;
    font-size: 24px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
}

.cart-count { font-size: 12px; }


/* ====== страница ====== */

.page-template-template-homepage .site .entry-content, .page-template-template-homepage .site .entry-header {
    max-width: 100%;
}
#metaslider_83 .flex-viewport{border-radius: 20px;}
.home header.entry-header{display: none;}
.home #primary .col-full{max-width: 100% !important; padding: 0;}
.home #primary main{padding-top: 0px;}
.wp-block-columns {
    display: flex;
    align-items: stretch;
}

.wp-block-columns .wp-block-column {
    display: flex;
    flex-direction: column;
}

.wp-block-columns {
    align-items: stretch;
}

.wp-block-columns .wp-block-column > * {
    flex-grow: 1;
}

.wp-block-woocommerce-featured-category{
    min-height:auto !important;
    aspect-ratio: 4/3;
	border-radius: 20px;
}


.boxkz-cat-grid{
	display:grid;
	grid-template-columns:repeat(3,1fr);
	gap:20px;
	margin-bottom: 50px;
}

.boxkz-cat-item{
	position:relative;
	height:200px;
	border-radius:10px;
	overflow:hidden;
	display:block;
	color:#fff;
	text-decoration:none;
}

.boxkz-cat-bg{
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background-size:cover;
	background-position:center;
	transition:transform .4s ease;
}

.boxkz-cat-overlay{
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	/*background:rgba(0,0,0,0.5);
	transition:background .3s;
	backdrop-filter: blur(1px);*/
}

.boxkz-cat-title{
	position:absolute;
	top:50%;
	/* left:50%; */
	transform:translate(0%,-50%);
	font-size:22px;
	font-weight:600;
	text-align:center;
	padding:10px;
	z-index:2;
	text-shadow: 1px 1px 3px black;
	text-transform: uppercase;
	font-family: 'Montserrat', sans-serif !important;
}

.boxkz-cat-item:hover .boxkz-cat-bg{
	transform:scale(1.1);
}

.boxkz-cat-item:hover .boxkz-cat-overlay{
	/*background:rgba(0,0,0,0.25);
	backdrop-filter: blur(0px);*/
}
.wp-block-heading{text-align: left;}
.wc-block-product-template{margin-left: 0px;}
/* ===== Сетка как у ul.products ===== */
.wc-block-product-template {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ===== Карточка ===== */
.wc-block-product-template li {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: #fff;
    transition: 0.5s;
}

.wc-block-product-template li:hover {
    box-shadow: 0px 0px 5px #9b9b9b;
}

/* ===== Ссылка-обертка (аналог woocommerce-LoopProduct-link) ===== */
.wc-block-product-template li > a {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-decoration: none;
}

/* ===== Картинка ===== */
.wc-block-product-template li .wp-block-woocommerce-product-image img {
    transition: 0.5s;
}
.wc-block-product-template li:hover .wp-block-woocommerce-product-image img {
    opacity: 0.9;
    transform: scale(1.02);
    transition: 0.5s;
}

.wc-block-product-template li .wp-block-woocommerce-product-image img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* ===== Заголовок ===== */
.wc-block-product-template li .wp-block-post-title {
    font-family: 'Montserrat';
    margin: 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wc-block-product-template li .wp-block-post-title a {
    color: #333;
	font-family: 'Montserrat';
	margin: 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 1rem;
}

/* ===== Цена (прижимаем вниз) ===== */
.wc-block-product-template li .wc-block-components-product-price {
    margin-top: auto;
    font-family: 'Montserrat';
    font-size: 20px;
    color: #000;
    font-weight: 500;
}

/* Старая цена */
.wc-block-product-template li .wc-block-components-product-price del {
    font-size: 0.7em;
    color: #999;
}

/* ===== Кнопка ===== */
.hentry .entry-content .wp-block-button {
    margin-top: 10px;
	margin-bottom: 0;
}

.hentry .entry-content .wp-block-button button,
.hentry .entry-content .wp-block-button .wp-block-button__link {
    width: 100%;
    background-color: #b48281;
    font-size: 11px;
    font-family: 'Montserrat';
    color: #fff;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 15px 10px;
    transition: all 0.3s ease;
    border: none;
}

.hentry .entry-content .wp-block-button button:hover,
.hentry .entry-content .wp-block-button .wp-block-button__link:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ===== Скидка (onsale) ===== */
.wc-block-product-template li .wc-block-components-product-sale-badge {
    border: none;
    font-family: 'Montserrat';
    position: absolute;
    background-color: #ff004e;
    color: #fff;
    border-radius: 0;
    right: 0;
    top: 10px;
}





/*Корзина*/

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

.header-cart{
position:relative;
display:inline-block;
}

.cart-contents::after {
    display: none !important;
}

/* Контейнер корзины */
.cart-contents {
    position: relative;      /* чтобы count позиционировать */
    display: inline-block;
    font-size: 24px;         /* размер иконки корзины */
    color: #333;             /* цвет иконки */
}

/* Иконка корзины */
.cart-contents i {
    display: block;          /* чтобы кружок позиционировался относительно иконки */
}

/* Кружок с количеством */
.site-header-cart .cart-contents .count{
    position: absolute;
    top: 18px;
    right: -8px;
    display: inline-block;
    color: rgb(0, 0, 0);
    font-weight: bold !important;
    font-size: 12px !important;
    background: rgba(255, 255, 255, 0.76);
    padding: 0px 5px;
    border-radius: 4px;
    opacity: 1 !important;
    line-height: 1;
    min-width: 18px;
    text-align: center;
}


.site-header-cart:hover .widget_shopping_cart, .site-header-cart.focus .widget_shopping_cart{
	width: 340px;
    left: initial !important;
    right: 0 !important;
}

.widget_shopping_cart{border-radius: 10px;}
.widget_shopping_cart a{align-content: center;}



/* Адаптив для маленьких экранов */
@media (max-width: 768px) {
    .cart-contents {
        font-size: 20px;
    }
    .cart-contents .count {
        top: -4px;
        right: -4px;
        font-size: 10px;
        min-width: 16px;
    }
}



ul.products li.product img{}
ul.products li.product:hover img {opacity: 0.9; transform: scale(1.02); transition: 0.3s;}
ul.products li.product .button.add_to_cart_button{width: 100%; background-color: #b48281; margin-bottom: 0; font-size: 11px; font-family: 'Montserrat'; color: #fff; transition: all 0.3s ease; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; padding: 15px 10px;}
ul.products li.product .button.add_to_cart_button:hover{color: #fff; background-color: #946665; box-shadow: 0 3px 10px rgba(148, 102, 101, 0.25);}
.storefront-product-section.storefront-woocommerce-brands{display: none !important;}
#main .storefront-product-section .section-title{text-align: left;}
span.onsale{border: none; font-family: 'Montserrat'; position: absolute; background-color: #ff004e; color: #fff; border-radius: 0px; right: 0; top: 10px; text-transform: capitalize;}
h2.woocommerce-loop-product__title {font-family: 'Montserrat'; margin: 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; font-size: clamp(13px, 2.5vw, 1rem) !important; min-height: 40px;}
.page-template-template-homepage #main .type-page{margin-bottom: 0; padding-bottom: 0;}
/* Зачеркнутая старая цена */
.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del {
    font-size: 0.7em; /* уменьшенный размер */
    color: #999;       /* серый цвет, чтобы не выделялся */
}

/* 1. Основная карточка как flex-контейнер */
ul.products li.product {
    display: flex;
    flex-direction: column;
    height: 100%; /* карточка растягивается */
}

/* 2. Контент (картинка + заголовок + описание) растягиваем */
ul.products li.product .woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column;
    flex-grow: 1; /* занимает все доступное пространство */
}

/* 3. Цена всегда внизу */
#main ul.products li.product .price {
    margin-top: auto; /* прижимает цену к низу */
	font-family: 'Montserrat';
    font-size: 20px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

/* 4. Устанавливаем одинаковую высоту для всех карточек */
ul.products {display:grid; grid-template-columns:repeat(4,1fr); row-gap: 50px; column-gap: 20px;}
.home ul.products, .wp-singular ul.products{display:grid; grid-template-columns:repeat(5,1fr); gap:20px;}

ul.products li.product {
    /* растягиваем все карточки в ряду на одинаковую высоту */
	width:auto !important; 
	margin:0 !important;
	overflow: hidden;
	background-color: #fff;
	transition: 0.5s;
}
ul.products::before,
ul.products::after {
    display: none !important;
}

li.product:hover {
    box-shadow: 5px 5px 5px #9b9b9b;
	transition: 0.3s;
}

/* ====== Страница товара ====== */
.single-product .product_title {
	font-weight: 500;
    font-family: 'Montserrat';
    font-size: clamp(21px, 2.5vw, 32px);
    line-height: 1.2;
    margin: 0 0 10px 0;
}

.woocommerce-Tabs-panel > h2{display: none;}


/*============== МИНИ Корзина Storefront ==================*/
/* ===== Контейнер ===== */
#site-header-cart .widget_shopping_cart_content {
    width: 340px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 15px;
    font-family: system-ui, -apple-system, Arial, sans-serif;
    z-index: 999;
}

/* ===== Список ===== */
#site-header-cart .woocommerce-mini-cart {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 5px;
}

/* ===== Товар ===== */
#site-header-cart .mini_cart_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
    position: relative;
}

/* ===== Картинка ===== */
#site-header-cart .mini_cart_item img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ===== Название ===== */
#site-header-cart .mini_cart_item a {
    font-size: 13px;
    color: #222;
    text-decoration: none;
    line-height: 1.3;
    flex: 1;
    display: block;
    padding-right: 20px;
}

#site-header-cart .mini_cart_item a:hover {
    color: #007cba;
}

/* ===== Цена и количество ===== */
#site-header-cart .mini_cart_item .quantity {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.cart .quantity .plus, .cart .quantity .minus{color: #fff;}
/* Убираем стрелки у поля количества WooCommerce */
input.qty[type="number"]::-webkit-inner-spin-button,
input.qty[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input.qty[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ===== Кнопка удаления (маленькая аккуратная) ===== */
#site-header-cart .mini_cart_item .remove {
    position: absolute;
    top: 8px;
    right: 0;
    width: 18px;
    height: 18px;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    background: #f3f3f3;
    color: #888;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
}

#site-header-cart .mini_cart_item:hover .remove {
    opacity: 1;
}

#site-header-cart .mini_cart_item .remove:hover::before {
    color: red !important;
}

/* ===== Скролл красивый ===== */
#site-header-cart .woocommerce-mini-cart::-webkit-scrollbar {
    width: 4px;
}
#site-header-cart .woocommerce-mini-cart::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* ===== Итог ===== */
#site-header-cart .woocommerce-mini-cart__total {
	display: none !important;
    font-size: 15px;
	background-color: #f5f5f5;
	font-family: 'Montserrat';
	font-weight: 500;
	letter-spacing: 1px;
	padding: 15px 10px;
	border: none;
}

/* ===== Кнопки ===== */
#site-header-cart .woocommerce-mini-cart__buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
	background-color: initial;
}

#site-header-cart .woocommerce-mini-cart__buttons .button {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}



/* Оформление заказа */
#site-header-cart .woocommerce-mini-cart__buttons .button{
	margin-bottom: 0;
	font-size: 11px;
	font-family: 'Montserrat';
	transition: all 0.3s ease;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 15px 10px;
	border: none;
	cursor: pointer;
	border-radius: initial;
}

/* Просмотр корзины */
#site-header-cart .woocommerce-mini-cart__buttons .button:not(.checkout) {
    background: #f5f5f5;
    color: #333;
}

/* Оформление заказа */
#site-header-cart .woocommerce-mini-cart__buttons .checkout {
	background: #b58282;
	color: #fff;
}

/* hover */
#site-header-cart .woocommerce-mini-cart__buttons .button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}


.woocommerce-cart.storefront-align-wide.storefront-full-width-content .hentry .entry-content .wp-block-woocommerce-cart{width: 100%; margin: 0 auto;}
.woocommerce-cart #main header.entry-header{padding-top: 20px;}

/*=============================== Оформление заказа ============================================================*/
.woocommerce-checkout.page-template-template-fullwidth-php .hentry .entry-content .wp-block-woocommerce-checkout{width: 100%; margin: 0 auto;}
.woocommerce-checkout #main header.entry-header{padding-top: 20px;}
.wc-block-components-button:not(.is-link){	
	margin-bottom: 0;
	font-size: 11px;
	font-family: 'Montserrat';
	transition: all 0.3s ease;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 15px 10px;
	border: none;
	cursor: pointer;
	border-radius: initial;
	background: #b58282;
	color: #fff;
}

/*=============================== Каталог ============================================================*/
/*====================================================================================================*/
.archive #page .storefront-breadcrumb{padding-top: 10px;}
#page .storefront-breadcrumb{margin: 0px;}
.storefront-breadcrumb .col-full {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
}

.archive #content{margin-top: 30px;}
.archive #content h1.page-title{    
	margin-bottom: 0;
	font-size: clamp(18px, 2.5vw, 32px);
	line-height: 1.2;
	font-weight: bold;
}

.wc-block-product-filter-price-slider__range .range-bar{color: #b48281;}
.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{border: none;}
.wc-block-product-filter-price-slider .text input[type=text]{
	font-family: 'Roboto';
	background-color: #ececec;
    color: #333;
    border: none;
    max-width: 80px;
    text-align: center;
    font-size: 14px;
}

/* Стили для формы сортировки */
.woocommerce-ordering {
    display: inline-block;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

/* Стили самого select */
.woocommerce-ordering .orderby {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    appearance: none; /* убирает стандартный треугольник */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px; /* минимальная ширина */
}

/* Добавим стрелочку через псевдоэлемент */
.woocommerce-ordering {
    position: relative;
}

.woocommerce-ordering::after {
    content: "▼";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 10px;
    color: #555;
}

/* Ховер и фокус */
.woocommerce-ordering .orderby:hover,
.woocommerce-ordering .orderby:focus {
    border-color: #888;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    outline: none;
}

/* Стили для option (только цвет текста) */
.woocommerce-ordering .orderby option {
    color: #333;
}

.woocommerce-result-count{display: none;}
.archive .products{margin-bottom: 30px;}

span.wc-block-product-filter-checkbox-list__text-wrapper:hover {font-weight: 600;}
span.wc-block-product-filter-checkbox-list__text-wrapper {cursor: pointer; font-size: 1em;}

/*=============================== Конец Каталог ============================================================*/
/*=============================== мобильное меню ============================================================*/
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
 
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

.mobile-sidebar.active {

    visibility: visible;
}

.sidebar-overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
}

.sidebar-overlay {
    pointer-events: none;
}

.sidebar-overlay.active {
    pointer-events: auto;
}

.sidebar-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
	z-index: 9999;
}
.sidebar-content h3{font-size: 21px; margin-top: 5px;}

.mobile-sidebar.active .sidebar-content {
    transform: translateX(0);
}

.close-sidebar {
	display: none;
	font-size: 24px;
	border: none;
	background: none;
	cursor: pointer;
	margin-bottom: 15px;
}

.mobile-menu {
	list-style: none;
	padding: 0;
}

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

.mobile-menu a {
	text-decoration: none;
	color: #333;
	font-size: 16px;
}
.mobile-menu.cat a{color:#b58282;}

/* плавное затемнение */
.sidebar-overlay {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.mobile-sidebar.active .sidebar-overlay {
    background: rgba(0,0,0,0.5);
}
/*=============================== КОНЕЦ мобильное меню ============================================================*/
/*=============================== Страница НОВОСТИ ============================================================*/
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Карточка */
.news-item {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

/* Блок картинки */
.news-thumb {
    flex: 0 0 220px;
    height: 150px;
    overflow: hidden;
    border-radius: 12px;
}

/* Делаем ВСЕ картинки одинаковыми */
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ключевой момент */
    display: block;
}

/* Контент */
.news-content {
    flex: 1;
}

.news-content h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.news-content p {
    margin: 0;
    color: #666;
}

/* Кнопка */
.btn-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #b58282;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

/*старница самой новости*/

/* Контейнер статьи */
.news-single {
    margin: 0 auto;
}

/* Заголовок */
.news-single h1 {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Картинка */
.news-image {
    max-width: 350px;
    margin: 0 0 20px 0;
}

.news-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Текст */
.news-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* Абзацы */
.news-text p {
    margin-bottom: 15px;
}

/* Заголовки внутри */
.news-text h2,
.news-text h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Списки */
.news-text ul,
.news-text ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

/* Картинки внутри текста */
.news-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* Ссылки */
.news-text a {
    color: #0073aa;
}

.news-text a:hover {
    text-decoration: underline;
}


/*=============================== КОНЕЦ Страница НОВОСТИ ============================================================*/



	.single-product form.cart .single_add_to_cart_button {
		background-color: #b58282;
		margin-bottom: 0;
		font-size: 11px;
		font-family: 'Montserrat';
		color: #fff;
		transition: all 0.3s ease;
		font-weight: 500;
		letter-spacing: 1.5px;
		text-transform: uppercase;
		padding: 15px 10px;
		border: none;
		cursor: pointer;
	}


/*=============================== Страница МОЙ АККАУНТ ============================================================*/
.woocommerce-account header h1, .woocommerce-account h2 {text-align: center;}
.woocommerce-account .woocommerce-form-login{max-width: 400px; margin: 0 auto;}

/*=============================== КОНЕЦ Страница МОЙ АККАУНТ ============================================================*/




/* Адаптивный логотип */
.site-branding {
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 60px;
}

.site-branding .custom-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}


/* Вертикальное центрирование элементов шапки */
#masthead > .col-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Логотип */
#masthead .site-branding {
    display: flex;
    align-items: center;
    margin: 0;
    min-width: 0;
}

#masthead .custom-logo-link {
    display: flex;
    align-items: center;
    max-width: 60px;
}

#masthead .custom-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

/* Социальные иконки */
#masthead .social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}



/* ====== Адаптивные брейкпоинты ====== */

/* Десктопы большие — от 1200px и выше */
@media (min-width: 1200px) {

}

/* Планшеты горизонтально — до 1199px */
@media (max-width: 1200px) {
    /* сюда стили для планшетов в ландшафтной ориентации */
	.sidebar-left { flex: 0 0 200px; }
    .sidebar-right { flex: 0 0 60px; }
	ul.products, .home ul.products, .wp-singular ul.products{grid-template-columns:repeat(4,1fr);}
	.boxkz-cat-title{font-size: 18px;}
	.hp_slider{flex-basis: 67% !important;}
	.hp_ad_cat{flex-basis: 33% !important;}
	.hp_ad_cat .wc-block-featured-category__inner-blocks{padding: 0 20px 0px;}
	.hp_ad_cat .wp-block-woocommerce-category-title{font-size: 22px;}
	.hp_ad_cat .wp-block-woocommerce-category-description{font-size: 16px;}
	.hp_ad_cat .wp-block-buttons{font-size: 16px; margin-top: 10px;}
	.hp_ad_cat .wp-block-button__link{padding: 5px 18px;}
	#site-navigation .primary-navigation, #site-navigation .main-navigation ul.menu, .main-navigation ul.nav-menu{gap: 15px;}
	#site-navigation > .menu{display:none;}
	.primary-navigation-wrapper nav.main-navigation{flex-grow: 0; flex-shrink: 0; flex-basis: content;}
}

/* Планшеты вертикально / большие телефоны — до 991px */
@media (max-width: 992px) {
    /* сюда стили для планшетов и больших смартфонов */
	.site-wrapper { flex-direction: column; }
    .sidebar-left, .sidebar-right {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }
    .main-content { overflow: visible; }
	.boxkz-cat-grid{
		grid-template-columns:repeat(2,1fr);
	}
	ul.products{grid-template-columns:repeat(3,1fr);}
	
	.home .hp_slider{margin: 0 !important; padding: 0 !important;}
	.hp_ad_cat .wc-block-featured-category__inner-blocks{padding: 0 20px 0px;}
	.hp_ad_cat .wp-block-woocommerce-category-title{font-size: 22px;}
	.hp_ad_cat .wp-block-woocommerce-category-description{font-size: 16px;}
	.hp_ad_cat .wp-block-buttons{font-size: 16px; margin-top: 10px;}
	.hp_ad_cat .wp-block-button__link{padding: 5px 18px;}
}

/* Смартфоны большие — до 767px */
@media (max-width: 768px) {
	    #masthead .custom-logo-link,
    #masthead .custom-logo {
        max-width: 45px;
        max-height: 45px;
    }

    #masthead .social-icons {
        gap: 8px;
    }
	
	.site-branding .custom-logo-link {
        max-width: 45px;
    }

    .site-branding .custom-logo {
        max-width: 45px;
        max-height: 45px;
    }
	
    /* сюда стили для обычных смартфонов */
	.sidebar-left, .sidebar-right { flex-direction: column; align-items: flex-start; }
    .icon-button { font-size: 20px; }
	.wp-block-columns{
		gap:20px;
	}

	body:not(.page-template-template-fullwidth-php):not(.storefront-full-width-content)
	.hentry .entry-content .wp-block-columns .wp-block-column:not(:last-child){
		margin-right:20px;
	}
	ul.products, .home ul.products, .wp-singular ul.products{grid-template-columns:repeat(2,1fr);}
	
	
	  #secondary {
    position: fixed;
    top: 0;
    left: -280px; /* скрыт за экраном */
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    padding: 20px;
  }

  #secondary.active {
    left: 0; /* выезжает */
  }

  /* затемнение фона */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    display: none;
  }

  .sidebar-overlay.active {
    display: block;
  }

  /* кнопка открытия */
  .sidebar-toggle {
	  background: #b48281;
	  color: #fff;
	  padding: 10px 12px;
	  border-radius: 5px;
	  cursor: pointer;
	  font-family: 'Montserrat';
	  letter-spacing: 0.5px;
	  display: block !important;
	}

	.archive #primary{width: 100%;}
	
	
	.primary-navigation-wrapper nav.main-navigation ul.menu li a, .site .main-navigation ul.menu>li>a, .main-navigation ul.nav-menu>li>a{padding: 15px 0;}
	
	#masthead .col-full{padding: initial;}
	
	
	   /* старая цена */
    .single-product p.price del {
        color: #999999; /* светло-серый */
        font-size: 16px;
    }

    /* новая цена */
    .single-product p.price ins {
        color: #111111; /* основной цвет */
        font-weight: 700;
        font-size: 24px;
    }

    /* убираем лишние screen-reader text для визуала */
    .single-product p.price .screen-reader-text {
        display: none;
    }
	.single-product.woocommerce span.onsale{position: static;}
	
	
	.news-item {flex-direction: column;}
	.news-thumb {width: 100%; height: 200px;}
	
	.col-full { max-width: 95% !important;}
	ul.products {
		row-gap: 10px;
		column-gap: 10px;
	}
}

/* Малые телефоны — до 480px */
@media (max-width: 480px) {
    /* сюда стили для маленьких телефонов */
	
	#masthead, #masthead .col-full{height: 50px;}
	ul.products{grid-template-columns: repeat(2, 1fr);}
	.boxkz-cat-grid {grid-template-columns: repeat(2, 1fr);}
	.site{overflow-x: hidden !important;}
	.primary-navigation-wrapper{ display: none;}
	.social {width: 32px; height: 32px;}
	.boxkz-cat-item{height: auto; aspect-ratio: 1 / 1; width: 100%;}
	.boxkz-cat-title {font-size: 18px;}
	
	.storefront-handheld-footer-bar ul li.search>a::before, .storefront-handheld-footer-bar ul li.cart>a::before{color: #fff;}
	footer .storefront-handheld-footer-bar ul li>a, .storefront-handheld-footer-bar ul li>button {height: 3em !important;}
	footer .storefront-handheld-footer-bar ul li a{border: none;}
	footer .storefront-handheld-footer-bar ul li>a::before {line-height: 2;}
	footer .storefront-handheld-footer-bar{z-index: 999999 !important; border-top: none;}
	footer .storefront-handheld-footer-bar ul{display: flex; justify-content: space-between; padding: 0; margin: 0; list-style-type: none;}
	footer .storefront-handheld-footer-bar ul li{flex: 1; text-align: center; box-sizing: border-box;}
	footer .storefront-handheld-footer-bar ul li > a{color: #333 !important; text-indent: initial !important; display: flex; align-items: center; justify-content: center; /* width: 50px; */ height: 50px; text-decoration: none;}
	footer .storefront-handheld-footer-bar ul li button{display: flex; align-items: center; justify-content: center; height: 100%; text-align: center; text-decoration: none; text-indent: initial; width: 100%;}
	footer .storefront-handheld-footer-bar ul li i{font-size: 24px; line-height: 1; color: #fff;}
	footer .storefront-handheld-footer-bar ul li.search a, footer .storefront-handheld-footer-bar ul li.cart a{text-indent: -9999px !important;}
	
    .cart-dropdown {width: 95vw; padding: 10px;}
    .cart-dropdown .mini_cart_item img {width: 45px; height: 45px;}
    .cart-dropdown .woocommerce-mini-cart__buttons {flex-direction: column;}
	
	
	/* убираем кнопку */
	.wc-block-product-filters__open-overlay {
		display: none !important;
	}

	/* убираем overlay как модалку */
	.wc-block-product-filters__overlay {
		position: static !important;
		display: block !important;
		background: none !important;
		height: auto !important;
	}

	.wc-block-product-filters__overlay-wrapper,
	.wc-block-product-filters__overlay-dialog {
		position: static !important;
		transform: none !important;
		width: 100% !important;
		height: auto !important;
		max-height: none !important;
		background: transparent !important;
	}

	/* убираем хедер "Закрыть" */
	.wc-block-product-filters__overlay-header {
		display: none !important;
	}

	/* убираем футер "Применить" */
	.wc-block-product-filters__overlay-footer {
		display: none !important;
	}

	/* сам контент фильтров */
	.wc-block-product-filters__overlay-content {
		display: block !important;
		
	}
	
	
	
	   /* общий блок цены */
	.single-product div.product p.price{
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px; /* расстояние между старой и новой ценой */
        font-size: 16px;
        margin: 10px 0;
		justify-content: flex-end;
		margin-bottom: 10px;
    }

	.single-product.woocommerce span.onsale{position: absolute;}
	
	
	.single-product form.cart {
		display: flex;
		flex-direction: row;
		align-items: stretch;
		width: 100%;
	}

	.single-product form.cart .quantity {
		width: 100%;
		display: flex;
		gap: 5px;
		justify-content: center;
	}

	.single-product form.cart .quantity input.qty {
		width: 100%;
		padding: 10px;
		font-size: 16px;
		box-sizing: border-box;
	}
	
	

	.single-product form.cart .single_add_to_cart_button {
		width: 100%;
	}

	.single-product form.cart .single_add_to_cart_button:hover {
		background-color: #333; /* эффект наведения */
	}

	/* Скрыть текст screen-reader для маленьких экранов, если не нужен */
	.single-product form.cart .screen-reader-text {
		display: none;
	}
	
	.single-product #primary div.product .images{margin-bottom: 15px;}
	.single-product div.product form.cart{position: fixed; bottom: 7px; left: 0; background-color: #fff; z-index: 99; padding-top: 0 !important;}
   
	.news-thumb {height: 180px;}
    .news-content h2 {font-size: 18px;}
}

/* Очень маленькие устройства / узкие экраны — до 360px */
@media (max-width: 360px) {
    /* сюда стили для узких экранов */

}

