/*
 Theme Name:   Woostify Child
 Description:  Дочерняя тема для темы Woostify
 Author:       Danifo
 Author URI:   https://danifo.ru
 Template:     woostify
 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:  woostify-child
*/

.woo-categories-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    font-family: inherit;
    padding: 15px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
}

.woo-categories-accordion__title {
    font-size: 16px;
    font-weight: 700;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.accordion-header.active-category .category-count {
    font-weight: bold;;
}

.accordion-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.accordion-toggle:hover {
    background-color: #e0e0e0;
}

.accordion-header.active-category .accordion-toggle {
    color: white;
}

.accordion-header.active-category .accordion-toggle:hover {
    background-color: rgba(255,255,255,0.2);
}

.toggle-icon {
    transition: transform 0.3s ease;
    display: inline-block;
    font-weight: bold;
    line-height: 1;
}

.accordion-toggle.active .toggle-icon {
    transform: rotate(0deg);
}

.no-toggle {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: inline-block;
    flex-shrink: 0;
}

.category-link {
    flex: 1;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4rem;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #1346af;
}

.current-category-link {
    font-weight: bold;
}

.category-count {
    color: #666;
    font-size: 0.9em;
    font-weight: normal;
    margin-left: 5px;
}

.accordion-content {
    display: none;
    margin-top: 8px;
}

.accordion-item {
    margin-top: 5px;;
}

.accordion-item.depth-1 {
    margin-top: 0px;;
}

.accordion-item:first-child {
    margin-top: 0px;
}

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

/* Стили для разных уровней вложенности */
.accordion-item.depth-2 .accordion-header {
    padding-left: 12px;
}

.accordion-item.depth-3 .accordion-header {
    padding-left: 24px;
}

.accordion-item.depth-4 .accordion-header {
    padding-left: 26px;
}

/* Подсветка активной цепочки категорий */
.accordion-item.should-expand > .category-link {
    color: #1346af;
}
.product-loop-meta .animated-meta {
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
}
.product-loop-meta.no-transform .button {
  margin-top: 0;
}
.product-loop-meta .loop-add-to-cart-btn {
  text-indent: -9999px;
  width: 36px;
}
.product-loop-meta a .woostify-svg-icon {
  margin-right: 0;
}
.product-loop-meta .woostify-svg-icon {
  width: 16px;
  height: 16px;
}
.products .product {
  display: flex !important;
}
.product-loop-wrapper {
    display: flex;
    flex-direction: column;
}
.product-loop-content {
  flex-grow: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.my-account .subbox {
  left: -110px;
}
.my-account .subbox a {
  padding: 10px 10px;
}

.woostify-breadcrumb {
  overflow-x: scroll;
  white-space: nowrap;
}
.woostify-breadcrumb::-webkit-scrollbar {
  height: 6px;
  cursor: pointer;
}
.woostify-breadcrumb::-webkit-scrollbar-thumb {
  background-color: #e8e8e8;
  border-radius: 3px;
  cursor: pointer;
}
.single-product .woostify-breadcrumb {
  padding-bottom: 5px;
  margin-bottom: 10px;
}
.single-product .content-top {
  padding-top: 0;
}

/** Виджет иконок соц.сетей */
.all-in-one-social-button {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.all-in-one-social-button .items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transition: all .2s ease-in-out;
  pointer-events: none;
}
.all-in-one-social-button .items.opened {
  opacity: 1;
  pointer-events: all;
}
.all-in-one-social-button .social-button {
  align-items: center;
	background-color: #303030;
	border: none;
	border-radius: 50%;
	box-shadow: 0 0 10px rgba(0,0,0,.3);
	display: flex;
	height: 52px;
	justify-content: center;
	min-width: 52px;
	padding: 0;
	transition: background-color .2s ease-in-out
}
.all-in-one-social-button .social-button:hover {
  cursor: pointer;
  background-color: #1346af;
}
.all-in-one-social-button svg path{
  fill: #fff;
}
.all-in-one-social-button .toggle-button--active {
  background-color: #1346af;
}
.all-in-one-social-button .toggle-button > svg {
  display: none;
}
.all-in-one-social-button .toggle-button--active svg {
  display: block;
}
.all-in-one-social-button .toggle-icons {
  height: 52px;
  position: relative;
}
.all-in-one-social-button .toggle-icons svg {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity .4s ease-out;
}
.all-in-one-social-button .toggle-button--active .toggle-icons {
  opacity: 0;
} 
.all-in-one-social-button .toggle-icons .toggle-icon-active {
  opacity: 1;
}
.all-in-one-social-button svg.telegram-icon {
  transform: none;
  top: 15px;
  left: 12px;
}
.all-in-one-social-button .no-shadow {
  box-shadow: none;
}
.all-in-one-social-button .phone {
  background-color: #00b494;
}
.all-in-one-social-button .telegram {
	align-items: flex-start;
	background-color: #08c;
	justify-content: flex-start;
}
.all-in-one-social-button .max {
	align-items: center;
	background-color: #241a30;
	justify-content: center
}
.all-in-one-social-button .telegram  svg {
  margin-top: 15px;
  margin-left: 12px;
}
.all-in-one-social-button .whatsapp {
  background-color: #40c351;
}
/** Конец Виджет иконок соц.сетей */