/*
Theme Name: Blocksy Child
Template: blocksy
Author: Creative Themes
Description: Blocksy Child theme
Version: 1.0.1726579636
Updated: 2024-09-17 16:27:16

*/
a.ct-menu-link:hover {
    text-decoration: underline;
}

.sub-menu>li {
    padding: var(--columns-padding, 4px 30px) !important;
}

@media only screen and (min-width: 1024px) and (max-width: 1366px) {
.sub-menu>li {
    padding: var(--columns-padding, 0 30px) !important;
}
}

.hover-card .wp-block-kadence-advancedheading{
    transition: all .2s ease-in-out;
}

.hover-card:hover .wp-block-kadence-advancedheading {
    transform: translateY(-10px);
}

.text-red > a{
    color: rgb(235, 34, 77) !important;
}

/* Перенос пунктов меню */
.header-menu-1 #menu-main-menu {
    flex-wrap: wrap !important;
}

.tawcvs-swatches .swatch-shape-circle {
width: 30px !important;
}

 /* Переключение картинки в карточка товара */
img.swap-image.wp-post-image {
    position: absolute;
    aspect-ratio: 3 / 4;
    z-index: -1;
    object-fit: cover;
}

 .swap-image {
     pointer-events: none;
 }

 .ct-media-container img {
    transition: all .2s ease-in-out;
 }

 .archive .type-product:hover .ct-media-container img, .new-grid .type-product:hover .ct-media-container img {
     opacity: 0;
 }

 /* Мобилка */
 @media only screen and (max-width: 480px) {
     .ct-woo-card-extra[data-type=type-2] a {
         padding: 4px;
         min-height: 36px;
         background-color: #ffffff4d;
         border-radius: 24px;
     }

     .ct-woo-card-extra[data-type=type-2] {
         bottom: 22px;
     }

     .ct-woo-card-extra[data-type=type-2] {
         inset-inline: 13px;
         grid-column-gap: 24px;
     }

     .wp-block-handpicked-products {
         display: grid;
         grid-template-columns: repeat(1, 1fr);
     }

     .wc-block-grid.has-4-columns .wc-block-grid__products {
         display: grid !important;
         grid-template-columns: repeat(2, 1fr);
     }

     /* .ct-woo-card-extra a:nth-child(3n+1) {
         display: none;
     } */

    .ct-woo-card-extra[data-type=type-2] {
        bottom: 185px;
        width: 36px;
        top: 6px;
        right: 6px !important;
        inset-inline: auto;
    }
 }

 /* Меняем местами в корзину и наличие*/
/*  .ct-cart-actions {
     flex-direction: column-reverse;
 } */

 .ct-cart-actions div:nth-child(1) {
     order: 2;
 }

 .ct-cart-actions div:nth-child(2) {
     order: 1;
 }

 .ct-cart-actions div:nth-child(3) {
     order: 3;
 }

 /* Скрывает табы и sku в товаре */
 /* .woocommerce-tabs, .sku_wrapper {
    display: none !important;
 } */

/* .brand-menu .sub-menu {
     max-height: 226px;
     overflow: hidden;
     transition: all .3s ease-in-out;
 } */

/* Сворачивалка подменю */

@media only screen and (min-width: 1140px) {


.brand-menu .sub-menu {
    max-height: 260px;
    overflow: hidden;
}
}
.brand-menu .sub-menu.opened-excess {
    max-height: 900px;
    overflow: visible;
}

.wrap-button-excess {
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
    text-align: center;
    padding: 6px 0;
}
button.open-excess {
    width: 120px;
    border-radius: 5px;
}
.brand-menu .opened-excess .wrap-button-excess {
bottom: -26px;
}

#menu-item-244287 a {
user-select: all !important;
}
#menu-item-244287:hover .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Выбор Эмили */
.emilie-choose .woo-listing-top {
display: none;
}


/* Промо в шапке */
#menu-promo-menyu > li > a {
    background: pink !important;
    display: flex;
    text-align: center;
    padding: 14px 16px;
    margin: 10px auto;
    height: 44px;
    border-radius: 3px;
    color: #515151;
}

img.swap-image.wp-post-image {
    position: absolute;
    aspect-ratio: 3 / 4;
    z-index: -1;
    object-fit: cover;
    border: 1px solid #fafbfc;
    border-radius: 3px;
}

/* Промо для мобилки */
[data-id="mobile-menu-secondary"] .menu-item {
    background: pink !important;
    padding: 8px 30px;
    border-radius: 6px;
    max-width: 274px;
}
[data-id="mobile-menu-secondary"] .menu-item a{
    color: #515151;
}

/* Подарочная упаковка в корзине */
.gift-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
a.gift-pack {
    padding: 10px 20px;
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    justify-content: center;
    max-width: 342px;
    color: #6f6f6f;
    border-color: pink;
    flex-grow: 1;
}
.gift-pack:hover {
    background: pink;
}
.gift-pack:hover svg path{
    fill: #fff;
}
.gift-pack:hover svg {
    fill: #fff;
}

/* Категории в каталоге */
.cat-container {
    margin: 0 auto 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.top-cat-card {
    flex-basis: calc((100% / 6) - 20px);
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    height: 58px;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    color: inherit;
    text-decoration: inherit;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 10px 17px #0000000d;
    justify-content: center;
    transition: all .2s ease-in-out;
    white-space: nowrap;
}

.top-cat-card a {
    color: #000;
    display: block;
    padding: 0 16px;
}

.top-cat-card:hover {
    color: #000;
    background: #f5aab5;
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
    .cat-container {
        flex-wrap: nowrap; /* Предотвращает перенос строк */
        overflow-x: auto; /* Горизонтальный скролл */
        scroll-behavior: smooth; /* Плавный скролл */
        -webkit-overflow-scrolling: touch; /* Плавный скролл для iOS */
    }

    .top-cat-card {
        flex-basis: auto;
        box-sizing: border-box;
        position: relative;
        display: flex;
        align-items: center;
        height: 58px;
        padding: 0;
        background: #fff;
        border-radius: 8px;
        font-size: 14px;
        line-height: 1.2rem;
        font-weight: 500;
        cursor: pointer;
        color: inherit;
        text-decoration: inherit;
        -webkit-tap-highlight-color: transparent;
        box-shadow: 0 10px 17px #0000000d;
        justify-content: center;
        transition: all .2s ease-in-out;
        font-weight: 400;
        max-width: 210px;
        white-space: normal;
        margin-bottom: 20px;
        flex-shrink: 0;
    }
    .top-cat-card:last-child {
        margin-right: 0; /* Убирает правый отступ у последней карточки */
    }
}

/* Фильтры */
.wpc-term-count-0 {
    display: none;
}

/* Убираем информацию Долями в сертификатах */
.product-type-pw-gift-card #opendolyami {
    display: none;
}
