/**
 * One Elementor - One Recent Viewed Products Widget
 */

/* ========================================
   Wrapper
======================================== */
.oe-recent-viewed-wrapper {
    width: 100%;
}

/* Widget Title */
.oe-recent-viewed-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

/* ========================================
   Product List
======================================== */
.oe-recent-viewed-list {
    display: flex;
    flex-direction: column;
}

/* ========================================
   Product Item
======================================== */
.oe-recent-viewed-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    transition: all 0.3s ease;
}

.oe-recent-viewed-item:last-child {
    margin-bottom: 0;
}

.oe-recent-viewed-item:hover {
    background-color: #F9F9F9;
}

/* ========================================
   Product Image
======================================== */
.oe-recent-viewed-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #F5F5F5;
    border-radius: 4px;
}

.oe-recent-viewed-image a {
    display: block;
    height: 100%;
    line-height: 0;
}

.oe-recent-viewed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.oe-recent-viewed-item:hover .oe-recent-viewed-image img {
    transform: scale(1.05);
}

/* ========================================
   Product Info
======================================== */
.oe-recent-viewed-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

/* Product Name */
.oe-recent-viewed-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #333333;
}

.oe-recent-viewed-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.oe-recent-viewed-name a:hover {
    color: #FF6B6B;
}

/* Product Price */
.oe-recent-viewed-price {
    font-size: 16px;
    font-weight: 600;
    color: #FF6B6B;
}

.oe-recent-viewed-price .amount {
    color: inherit;
}

.oe-recent-viewed-price del {
    font-size: 13px;
    font-weight: 400;
    color: #999999;
    margin-right: 5px;
}

.oe-recent-viewed-price ins {
    text-decoration: none;
}

/* ========================================
   Responsive Design
======================================== */

/* Mobile */
@media (max-width: 768px) {
    .oe-recent-viewed-item {
        gap: 12px;
        padding: 8px;
    }

    .oe-recent-viewed-image {
        width: 70px;
        height: 70px;
    }

    .oe-recent-viewed-name {
        font-size: 13px;
    }

    .oe-recent-viewed-price {
        font-size: 14px;
    }

    .oe-recent-viewed-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .oe-recent-viewed-item {
        gap: 10px;
        padding: 6px;
    }

    .oe-recent-viewed-image {
        width: 60px;
        height: 60px;
    }

    .oe-recent-viewed-name {
        font-size: 12px;
    }

    .oe-recent-viewed-price {
        font-size: 13px;
    }
}
