.pr-recently-viewed-plugin {
    position: relative;
}

.pr-recently-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pr-recently-title {
    position: relative;
    display: inline-flex;
    justify-content: center;
    width: 100%;
    color: var(--text-main);
    font-weight: 700;
    text-align: center;
}

.pr-recently-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
    font-size: 1rem;
    line-height: 1.1;
}

.pr-recently-nav {
    flex-shrink: 0;
    gap: 0.5rem;
}

.pr-recently-arrow.uk-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 12px;
    border: 1.5px solid var(--border-strong);
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background-color .2s ease;
}

.pr-recently-arrow.uk-button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
    color: var(--link-hover);
    background: var(--bg-card-soft);
}

.pr-recently-arrow.uk-button:disabled {
    opacity: .45;
    cursor: not-allowed;
    border-color: var(--border-color);
}

.pr-recently-track-wrap {
    overflow: hidden;
}

.pr-recently-track {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.pr-recently-track::-webkit-scrollbar {
    display: none;
}

.pr-recently-slide {
    flex: 0 0 calc(100% - 8px);
    min-width: calc(100% - 8px);
}

@media (min-width: 640px) {
    .pr-recently-slide {
        flex: 0 0 calc(50% - 8px);
        min-width: calc(50% - 8px);
    }
}

@media (min-width: 960px) {
    .pr-recently-viewed-plugin .pr-recently-slide {
        flex: 0 0 calc(33.333333% - 11px);
        min-width: calc(33.333333% - 11px);
    }
}

@media (min-width: 1400px) {
    .pr-recently-viewed-plugin .pr-recently-slide {
        flex: 0 0 calc(25% - 12px);
        min-width: calc(25% - 12px);
    }
}

.pr-recently-product {
    display: block;
    height: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.pr-recently-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
    text-decoration: none;
    color: inherit;
}

.pr-recently-product:focus,
.pr-recently-product:active,
.pr-recently-product:visited {
    text-decoration: none;
    color: inherit;
}

.pr-recently-product-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
}

.pr-recently-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    margin-bottom: 14px;
}

.pr-recently-product-image img {
    display: block;
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .3s ease;
}

.pr-recently-product:hover .pr-recently-product-image img {
    transform: scale(1.03);
}

.pr-recently-product-title {
    margin: 0 0 10px;
    min-height: 44px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    text-align: center;
    color: var(--text-main);
    transition: color .2s ease;
}

.pr-recently-product:hover .pr-recently-product-title {
    color: var(--link-hover);
}

.pr-recently-product-price {
    margin-top: auto;
    color: var(--success);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.pr-recently-product-btn.uk-button {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    gap: 8px;
}