/* Эффект увеличения изображения товара при наведении */
.product-card__image {
    overflow: hidden;
}

.product-card__image img {
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    display: block;
}

.product-card__image:hover img,
.product-card__image:focus img {
    transform: scale(1.08);
}


.size-select__item{
    text-transform: uppercase;
}

.cards-modal__overlay {
    font-size: 1.2em;
    color: #51122A;
    text-align: center;
}

.product-card__cart:hover{
    cursor: pointer;
}

.journal-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.journal-search__results {
    position: absolute;
    left: 0;
    right: 0;
    top: 110%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(81,18,42,0.08);
    z-index: 10;
    padding: 0;
    margin: 0;
    list-style: none;
    border: 1px solid #f2e9ec;
    font-size: 1.1em;
    overflow: hidden;
}

.journal-search__result {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f2e9ec;
    transition: background 0.2s;
    cursor: pointer;
    color: #51122A;
    text-decoration: none;
    background: #fff;
}

.journal-search__result:last-child {
    border-bottom: none;
}

.journal-search__result:hover,
.journal-search__result:focus {
    background: #f9f4f6;
}

.journal-search__thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 18px;
    flex-shrink: 0;
    background: #f2e9ec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-search__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journal-search__info {
    flex: 1;
}

.journal-search__title {
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 2px;
    color: #51122A;
}

.journal-search__meta {
    font-size: 0.92em;
    color: #bfa3ad;
}

.journal-search__preloader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
    background: #fff;
}
.lds-dual-ring {
  display: inline-block;
  width: 36px;
  height: 36px;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 32px;
  height: 32px;
  margin: 2px;
  border-radius: 50%;
  border: 4px solid #e5c1cc;
  border-color: #e5c1cc transparent #51122A transparent;
  animation: lds-dual-ring 1.1s linear infinite;
}
@keyframes lds-dual-ring {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
.article__share-wrap {
    position: relative;
    display: inline-block;
}

.article__share-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px; /* уменьшить отступ */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(81,18,42,0.10);
    min-width: 160px;
    z-index: 20;
    padding: 8px 0;
    flex-direction: column;
    gap: 0;
}
.article__share-link {
    display: block;
    padding: 12px 20px;
    color: #51122A;
    text-decoration: none;
    font-size: 1em;
    transition: background 0.2s;
}
.article__share-link:hover,
.article__share-link:focus {
    background: #f9f4f6;
}
.article__hero-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

@media (max-width: 600px) {
    .article__share-dropdown {
        right: auto;
        left: 0;
        min-width: 140px;
        font-size: 1em;
    }
}


.woocommerce img, .woocommerce-page img{
    height: 100% !important;
    max-width: unset !important;
}


.article-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    /* margin-bottom: 28px; */
    text-decoration: none !important;
    transition: background 0.15s;
    border-radius: 12px;
    padding: 8px 0;
}

.article-card:hover,
.article-card:focus {
    text-decoration: none !important;
    
}

.article-card__image {
    width: 96px;
    height: 96px;
    
    overflow: hidden;
    flex-shrink: 0;
    background: #f2e9ec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    flex: 1;
}

.article-card__date {
    font-size: 0.92em;
    color: #bfa3ad;
    margin-bottom: 2px;
    display: block;
}

.article-card__title {
    display: block;
    font-weight: 600;
    color: #51122A;
    margin-bottom: 4px;
    font-size: 1em;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-card__excerpt {
    display: block;
    color: #bfa3ad;
    font-size: 0.96em;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.article-card,
.article-card *,
.article-card:visited,
.article-card:hover,
.article-card:focus {
    text-decoration: none !important;
}

/* Можно отдельно для заголовка и анонса */
.article-card__title,
.article-card__excerpt {
    text-decoration: none !important;
}

.header__cart-badge {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
    min-width: 20px !important;
    height: 20px !important;
    background: linear-gradient(135deg, #e94e77 60%, #ffb6c1 100%) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 6px !important;
    box-shadow: 0 2px 8px rgba(81,18,42,0.13), 0 0 0 2px #fff !important;
    pointer-events: none !important;
    z-index: 20 !important;
    border: 1.5px solid #fff !important;
    transition: background 0.2s, box-shadow 0.2s !important;
    letter-spacing: 0.02em !important;
    text-shadow: 0 1px 2px rgba(81,18,42,0.13) !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    visibility: hidden; /* Скрыт по умолчанию */
    opacity: 0;
    transition: background 0.2s, box-shadow 0.2s, opacity 0.15s, visibility 0.15s;
}

/* Показываем только если есть класс .header__cart-badge--active */
.header__cart-badge.header__cart-badge--active {
    visibility: visible;
    opacity: 1;
    display: inline-flex !important;
}

.header__cart {
    position: relative !important;
}

/* Сброс для span внутри .header__cart, чтобы не наследовались лишние стили */
.header__cart > span,
.header__cart-badge {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    width: auto;
    height: auto;
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    position: static;
}

/* Оставляем только нужные стили для бейджа */
.header__cart-badge {
    /* стили выше */
}