/**
Theme Name: Astra child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/
.agree {
	display: none !important;
}
.ast-single-post .entry-title {
	padding-top: 20px;
}

/* Меню */
.astra-megamenu.sub-menu {
	text-transform: none;
}
.main-header-menu .sub-menu .menu-link {
	padding: .3em 1em;
}
.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li:hover .astra-megamenu .astra-nested-sub-menu .menu-item .menu-link, .ast-desktop .ast-mega-menu-enabled .astra-megamenu-li:hover .astra-megamenu .astra-nested-sub-menu .astra-nested-sub-menu .menu-item .menu-link {
	padding-left: 1em;
}
.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li:hover .astra-megamenu>.menu-item:first-child {
    padding-left: inherit;
}
.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li:hover .astra-megamenu {
	flex-wrap: wrap;
    justify-content: center;
}
.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li:hover .astra-megamenu>.menu-item {
	flex: 1 0 16%;
}
.ast-mobile-popup-drawer .ast-mobile-popup-header {
	position: absolute;
	top: 0;
	right: 0;
}

/* Контейнер мобильного меню Astra */
    body.ast-header-break-point .ast-mobile-popup-drawer .ast-mobile-popup-inner {
      /* обеспечим контекст позиционирования */
      position: relative;
      overflow: hidden;
    }

	.mob-menu-social {
	  display: inline-block;
	}
	.mob-menu-social .menu-text {
	display: none;
}

.ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close {
	border: unset !important;
	z-index: 9;
}
 

/* Карточка товара */

div.product.ast-product-single-variable p.price {
	display: none;
}
.woocommerce-js div.product .summary.entry-summary p.price {
	margin-bottom: 1.2em;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active:before {
	background: var(--ast-global-color-0);
}
.woocommerce #content div.product .woocommerce-tabs ul.tabs li a, .woocommerce-page #content div.product .woocommerce-tabs ul.tabs li a {
        display: block;
        text-align: center;
    }
.woocommerce-product-gallery {
	border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 20px;
}
.woocommerce-js div.product div.images .woocommerce-product-gallery__image img {
	max-height: 600px;
	object-fit: cover;
}
.woocommerce-js div.product .product_meta>span>* {
	color: #000;
}
.woocommerce-product-gallery-thumbnails__wrapper {
	width: 100% !important;
	display: flex;
    justify-content: center;
}
.woocommerce-product-gallery-thumbnails__wrapper .ast-woocommerce-product-gallery__image {
	width: auto !important;
}
.woocommerce-js div.product div.images .woocommerce-product-gallery-thumbnails__wrapper img {
	object-fit: cover;
    height: 70px;
	width: 70px;
}
.woocommerce-js div.product .product_meta span.posted_in:nth-of-type(2) {
  display: none;
}
/* Корзина */
#ast-apply-coupon {
	padding: 5px 12px;
    margin-left: 8px;
	width: auto;
}

/* Каталог */
.woocommerce nav.woocommerce-pagination ul li span.current {
	color: #fff;
}
.woocommerce .ast-shop-toolbar-container .ast-shop-toolbar-aside-wrap .astra-shop-filter-button {
	display: none;
}
.woocommerce .ast-shop-toolbar-container {
	margin-bottom: unset;
}
.dc-top-catbar ul.products li.product.product-category {
	margin-bottom: unset;
}
.dc-top-catbar ul.products {
	row-gap: 20px;
}
.woocommerce-js ul.products li.product.product-category>a, .woocommerce-page ul.products li.product.product-category>a {
	display: flex;
    flex-direction: row;
	align-items: center;
	justify-content: center;
}

.woocommerce-js ul.products li.product.product-category a img {
	object-fit: contain;
	width: 28px;
	margin: 0;
}
.woocommerce-js ul.products li.product .woocommerce-loop-category__title, .woocommerce-page ul.products li.product .woocommerce-loop-category__title {
	font-size: 14px;
	text-transform: none;
	font-weight: normal;
}
.woocommerce-js ul.products li.product .woocommerce-loop-category__title, .woocommerce-page ul.products li.product .woocommerce-loop-category__title {
	position: unset;
	width: 50%;
}
.ast-flyout-filter, .astra-off-canvas-sidebar-wrapper, .astra-off-canvas-sidebar-wrapper *, .ast-flyout-filter * {
    will-change: auto !important;
    transition: none !important;
    animation: none !important;
}
/* Сортировка товаров в каталоге чипсами */
.catalog-sorting{display:flex;align-items:center;gap:.5rem .75rem;flex-wrap:wrap;margin:0 0 2rem}
.catalog-sorting__title{font-weight:600}
.catalog-sorting__list{display:flex;gap:.5rem;flex-wrap:wrap}
.catalog-sorting__item{display:inline-flex}
.catalog-sorting__link{display:inline-block;padding:.45rem .75rem;border:1px solid var(--ast-border-color,#e5e7eb);border-radius:9999px;text-decoration:none;font-size:.9rem;line-height:1;transition:background-color .15s ease,border-color .15s ease}
.catalog-sorting__item.is-active .catalog-sorting__link{border-color:currentColor;background-color:var(--ast-global-color-0)}
.catalog-sorting__link:hover{background:rgba(0,0,0,.03)}



/* Оформление заказа */
.ast-modern-checkout .woocommerce form.woocommerce-checkout .woocommerce-billing-fields-custom .ast-checkout-form-heading {
	align-items: flex-start;
    flex-direction: column;
	margin-bottom: 20px;
}
.ast-modern-checkout .woocommerce form.woocommerce-checkout .woocommerce-billing-fields-custom .ast-checkout-form-heading .woocommerce-billing-fields__customer-login-label #ast-customer-login-url {
	padding: 10px;
    background-color: var(--ast-global-color-4);
    border-radius: 8px;
    border: 1px #000 solid;
    margin-left: 10px;
}
.ast-footer-row-mobile-stack .footer-widget-area section.widget_block {
	margin-bottom: 5px;
}

@media (min-width:1025px){
  /* когда JS повесил класс на LI */
  li.menu-item-has-children.dc-mm-ready > ul.astra-megamenu.sub-menu{
    display: block !important;      /* перекрываем flex Astra */
    column-width: 220px;            /* или column-count: 6; */
    column-gap: 32px;
    column-fill: balance;
  }

  li.menu-item-has-children.dc-mm-ready > ul.astra-megamenu.sub-menu > li{
    display:inline-block;
    width:100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin:0 0 20px;
  }

  li.menu-item-has-children.dc-mm-ready ul.sub-menu ul.sub-menu{
    display:block !important;
    position:static !important;
    transform:none !important;
    visibility:visible !important;
    opacity:1 !important;
  }
}


@media (min-width: 768px) {
	
}
@media (max-width: 768px) {
/* Каталог */
	.woocommerce ul.products {
		column-gap: 14px;
	}
	
	 .woocommerce .ast-shop-toolbar-container .ast-shop-toolbar-aside-wrap .astra-shop-filter-button {
        display: flex;
		flex: 0;
        background: #f6edf099;
        border: 1px #000 solid;
        padding: 5px 12px;
        border-radius: 8px;
    }
	#secondary {
        display: none;
    }
	
	.woocommerce-js ul.products li.product.product-category>a, .woocommerce-page ul.products > li.product-category.product:not(:has(+ li.product-category.product)) {
	height: 90px;
}
	
/* Карточка товара */
	.woocommerce-js div.product div.images .woocommerce-product-gallery__image img {
	max-height: 460px;
	object-fit: cover;
	}
	
	/* Корзина */
	.cross-sells ul.products li.product.ast-article-single {
	display: inline !important;
}
	
/* Оформление заказа */
	#customer_details .ast-checkout-form-heading h3:not(.elementor-widget-woocommerce-checkout-page h3) {
		margin: 0;
	}
}

/* === DC: CFVSW-like block on SINGLE product (Astra + Variation Swatches) === */
.single-product .summary table.variations.cfvsw-variation-disable-logic{
  width:100%;
  margin:0 0 1rem 0;
  border:0;
  border-collapse:separate;
}

.single-product .summary table.variations.cfvsw-variation-disable-logic th.label{
  padding:0 12px 0 0;
  text-align:left;
  font-weight:600;
  vertical-align:middle;
  white-space:nowrap;
}

.single-product .summary table.variations.cfvsw-variation-disable-logic td.value{
  padding:0;
}

/* Прячем селект — показываем только “лейбл” */
.single-product .summary .cfvsw-hidden-select select{
  display:none;
}

/* Контейнер со свотчем */
.single-product .summary .cfvsw-swatches-container{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin:0; /* чтобы не съезжали отступы у разных тем */
}

/* Базовые стили cfvsw-элемента */
.single-product .summary .cfvsw-swatches-option{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:200ms;
  text-align:center;
  white-space:nowrap;
  line-height:1.3;
  cursor:pointer;
  border:1px solid #fff;
  background:#fff;
  padding:1px;
  user-select:none;
}

.single-product .summary .cfvsw-label-option{
  font-size: 14px;
  min-width: 40px;
  min-height: 40px;
  border-width:var(--cfvsw-swatches-border-width, 1px);
  border-style:solid;
  border-color:#00000020;
  padding:5px 10px;
  border-radius:8px;
}

/* Внутренний блок */
.single-product .summary .cfvsw-swatches-option .cfvsw-swatch-inner{
  display:flex;
  width:calc(100% - 2px);
  height:calc(100% - 2px);
  border-radius:inherit;
  transition:200ms;
  align-items:center;
  justify-content:center;
}

/* Hover */
.single-product .summary .cfvsw-swatches-option:not(.cfvsw-swatches-disabled):not(.cfvsw-swatches-out-of-stock):hover{
  border-color:var(--cfvsw-swatches-border-color-hover, #00000090);
  box-sizing:border-box;
}

/* Selected (включая наш .dc-cfvsw-selected) */
.single-product .summary .cfvsw-selected-swatch,
.single-product .summary .dc-cfvsw-selected{
  border-color:var(--cfvsw-swatches-border-color, #000) !important;
  border-width:var(--cfvsw-swatches-border-width, 1px);
  box-sizing:border-box;
  pointer-events: none;
}

/* Фокус для клавиатуры (используем цвет Astra) */
.single-product .summary .cfvsw-swatches-option:focus{
  outline:2px solid var(--ast-global-color-0, #0274be);
  outline-offset:2px;
}

/* Первый свотч без левого зазора — как в плагине */
.single-product .summary .cfvsw-product-container .cfvsw-swatches-option:first-child{
  margin-left:0;
}

/* Скрываем “Очистити”, раз у нас одна опция */
.single-product .summary .reset_variations{
  visibility:hidden;
  height:0;
  overflow:hidden;
  display:block;
}


/* Каталог: внешний вид как у cfvsw, но в нашем безопасном контейнере */
.woocommerce ul.products li.product .dc-cfvsw-loop { display:block; margin:0 0 .5rem 0; padding: 5px 0; }
.woocommerce ul.products li.product .dc-cfvsw-row { display:block; }

.woocommerce ul.products li.product .dc-cfvsw-hidden-select select { display:none; } /* скрываем селект */

.woocommerce ul.products li.product .cfvsw-swatches-container{
  display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin: auto;
}
.woocommerce ul.products li.product .cfvsw-swatches-option{
  position:relative; display:flex; align-items:center; justify-content:center;
  transition:200ms; text-align:center; white-space:nowrap; line-height:1.3;
  cursor:pointer; border:1px solid #fff; background:#fff; padding:1px; user-select:none;
}
.woocommerce ul.products li.product .cfvsw-label-option{
  border:1px solid #00000020;
  font-size:var(--cfvsw-swatches-font-size,12px);
  padding:5px 10px; border-radius:8px;
}
.woocommerce ul.products li.product .cfvsw-swatches-option .cfvsw-swatch-inner{
  display:flex; width:calc(100% - 2px); height:calc(100% - 2px);
  border-radius:inherit; transition:200ms; align-items:center; justify-content:center;
}
.woocommerce ul.products li.product .cfvsw-swatches-option:not(.cfvsw-swatches-disabled):not(.cfvsw-swatches-out-of-stock):hover{
  border-color:var(--cfvsw-swatches-border-color-hover,#00000090);
}
.woocommerce ul.products li.product .cfvsw-selected-swatch{
  border-color:var(--cfvsw-swatches-border-color,#000)!important;
  pointer-events: none;
}
