.topd-product-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: #2A2A32;
    overflow: hidden;
}

.topd-product-card__label {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.topd-product-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.topd-product-card__media .topd-product-stickers--view-loop .topd-product-sticker {
    font-size: 12px;
    padding: 5px 5px;
    min-height: auto;
}

.topd-product-card__image,
.topd-product-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.topd-product-card__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.woocommerce ul.products li.product h3.topd-product-card__title {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
    padding: 0;
}

.woocommerce ul.products li.product .topd-product-stock--view-card {
    margin: 0;
}

.topd-product-card__title {
    color: rgb(255, 255, 255);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
    margin: 0;
}

.topd-product-card__title a {
    color: inherit;
    text-decoration: none;
    font-weight: 400;
}

.topd-product-card__title a:hover {
    color: var(--e-global-color-accent);
}

.topd-product-card__description {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.45;
}

.topd-product-card__summary {
    display: grid;
    gap: 7px;
    margin: 10px 0;
}

.topd-product-card__summary-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
}

.topd-product-card__summary dt {
    margin: 0;
    color: rgba(255, 255, 255, 0.46);
    font-size: 11px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.topd-product-card__summary dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    line-height: 1.3;
}

.topd-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.topd-product-card__price {
    color: #ffffff;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}

.topd-product-card__price del {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 600;
}

.topd-product-card__price ins {
    color: #ffffff;
    text-decoration: none;
}

.topd-product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 6px;
    background: var(--e-global-color-accent);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
}

.topd-product-card__button:hover {
    background: var(--e-global-color-d6c7830);
    color: #fff;
    text-decoration: none;
}

/**
 * Сбрасываем часть стандартных стилей WooCommerce,
 * чтобы наша карточка нормально вставала внутрь <li class="product">.
 */
.woocommerce ul.products li.product .topd-product-card,
.woocommerce-page ul.products li.product .topd-product-card {
    height: 100%;
}

.woocommerce ul.products li.product .topd-product-card a,
.woocommerce-page ul.products li.product .topd-product-card a {
    text-decoration: none;
}

.woocommerce ul.products li.product .topd-product-card__price,
.woocommerce-page ul.products li.product .topd-product-card__price {
    margin: 0;
}

@media (max-width: 640px) {
    .topd-product-card__content {
        padding: 14px;
    }

    .topd-product-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .topd-product-card__button {
        width: 100%;
    }
}
/**
 * Растягиваем ссылку из заголовка на всю площадь карточки.
 *
 * Изображение и кнопка "Подробнее" остаются поверх неё как
 * самостоятельные ссылки на тот же товар. Таким образом вся
 * свободная область плитки кликабельна без вложенных <a>.
 */
.topd-product-card__title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.topd-product-card__media,
.topd-product-card__button {
    position: relative;
    z-index: 2;
}

.topd-product-card__label {
    pointer-events: none;
}

.topd-product-card__title a:focus-visible::after {
    outline: 2px solid var(--e-global-color-accent);
    outline-offset: -3px;
    border-radius: 20px;
}

#product-components .topd-product-stickers{
	top: 42px;
}

.topd-product-card--component .topd-product-card__media img{
	padding: 16px;
}