.sme-product-card__media .sme-quick-view-button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 13;
    display: inline-flex;
    width: auto;
    min-width: 106px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 13px;
    border: 1px solid var(--sme-color-primary);
    border-radius: var(--sme-radius-pill);
    background: var(--sme-color-primary);
    color: var(--sme-color-white);
    box-shadow: none;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.94);
    transition: opacity var(--sme-motion-base) ease, transform var(--sme-motion-base) ease, background-color var(--sme-motion-fast) ease, border-color var(--sme-motion-fast) ease;
}

.sme-product-card__media .sme-quick-view-button.has-compare {
    top: calc(50% - 25px);
}

.sme-quick-view-button__icon {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    filter: brightness(0) invert(1);
}

.sme-product-card__media .sme-quick-view-button span {
    color: inherit;
}

@media (hover: hover) and (pointer: fine) {
    .sme-product-card__media:hover .sme-quick-view-button,
    .sme-product-card__media:focus-within .sme-quick-view-button {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
    }
}

.sme-product-card__media .sme-quick-view-button:hover,
.sme-product-card__media .sme-quick-view-button:focus-visible {
    border-color: var(--sme-color-primary-hover);
    background: var(--sme-color-primary-hover);
    color: var(--sme-color-white);
    outline: 2px solid var(--sme-color-white);
    outline-offset: 2px;
}

.sme-product-card.is-quick-view-suppressed,
.sme-product-card.is-quick-view-suppressed:hover {
    box-shadow: var(--sme-shadow-card-idle);
    transform: none;
}

.sme-product-card.is-quick-view-suppressed .sme-product-card__media::after,
.sme-product-card.is-quick-view-suppressed .sme-quick-view-button,
.sme-product-card.is-action-reset .sme-quick-view-button {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.94);
    transition: none;
}

.sme-product-media-actions-trigger[data-sme-quick-view-mobile-trigger] {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 14;
    display: none;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--sme-color-border-strong);
    border-radius: 50%;
    background: var(--sme-color-surface);
    color: var(--sme-color-text);
    box-shadow: var(--sme-qv-control-shadow);
    cursor: pointer;
}

.sme-product-media-actions-trigger[data-sme-quick-view-mobile-trigger] span,
.sme-product-media-actions-trigger[data-sme-quick-view-mobile-trigger] span::before,
.sme-product-media-actions-trigger[data-sme-quick-view-mobile-trigger] span::after {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    content: '';
}

.sme-product-media-actions-trigger[data-sme-quick-view-mobile-trigger] span {
    position: relative;
}

.sme-product-media-actions-trigger[data-sme-quick-view-mobile-trigger] span::before {
    position: absolute;
    top: -7px;
    left: 0;
}

.sme-product-media-actions-trigger[data-sme-quick-view-mobile-trigger] span::after {
    position: absolute;
    top: 7px;
    left: 0;
}

.sme-product-card__media.is-mobile-actions-open .sme-product-media-actions-trigger[data-sme-quick-view-mobile-trigger] {
    border-color: var(--sme-color-text);
    background: var(--sme-color-text);
    color: var(--sme-color-white);
}

@media (max-width: 1024px) {
    .sme-product-media-actions-trigger[data-sme-quick-view-mobile-trigger] {
        display: inline-flex;
        width: var(--sme-touch-target);
        height: var(--sme-touch-target);
    }

    .sme-product-card__media .sme-quick-view-button {
        min-height: var(--sme-touch-target);
    }

    .sme-product-card__media .sme-quick-view-button {
        opacity: 0;
        pointer-events: none;
    }

    .sme-product-card__media.is-mobile-actions-open .sme-quick-view-button {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (max-width: 430px) {
    .sme-product-card__media .sme-quick-view-button {
        min-width: 96px;
        min-height: 34px;
        padding-inline: 11px;
        font-size: 10px;
    }

    .sme-quick-view-button__icon {
        width: 15px;
        height: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sme-product-card__media .sme-quick-view-button {
        transition: none;
    }
}
