/* Recently Viewed Section */
.recently-viewed-section {
    padding: 20px 0 20px 0;
    background-color: #F2F4F7;
}

.recently-viewed-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #D5D5D5;
    position: relative;
}

.recently-viewed-section .section-header::after {
    content: '';
    position: absolute;
    bottom: -0.5px;
    left: 0;
    width: 5%;
    height: 1.5px;
    background-color: #212529;
}

.recently-viewed-section .section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1D2939;
    margin: 0;
}

.recently-viewed-section .view-all {
    font-size: 12px;
    font-weight: 700;
    color: #344054;
    text-decoration: none;
    transition: all 0.3s ease;
}

.recently-viewed-section .view-all:hover {
    color: #2D7A4D;
}

.recently-viewed-section .view-all span {
    margin-left: 4px;
}

.recently-viewed-section .arrow-right {
    margin-left: 8px;
    height: 10px;
    object-fit: contain;
}

/* Products Grid */
.recently-viewed-section .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1.5fr);
    gap: 30px;
    padding: 0 60px;
}

/* Product Card */
.recently-viewed-section .product-card {
    background-color: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    padding: 12px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
}

.recently-viewed-section .product-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.recently-viewed-section .product-discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, #288CCB 0%, #49A644 100%);
    color: #FFFFFF;
    padding: 6px 10px;
    border-radius: 4px 0 4px 0;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
}

.recently-viewed-section .product-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F5F5;
    border-radius: 4px;
}

.recently-viewed-section .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.recently-viewed-section .product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    padding-left: 10px;
    border-top: 0px;
    border-left: 1px solid #DEDEDE;
}

.recently-viewed-section .product-title {
    font-size: 12px;
    font-weight: 500;
    color: #212529;
    margin: 0;
    line-height: 1.4;
    min-height: 32px;
}

.recently-viewed-section .product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.recently-viewed-section .stars {
    font-size: 13px;
    color: #FFCB3B;
}

.recently-viewed-section .review-count {
    font-size: 12px;
    font-weight: 500;
    color: #475467;
}

.recently-viewed-section .product-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recently-viewed-section .original-price {
    font-size: 12px;
    font-weight: 500;
    color: #667085;
    text-decoration: line-through;
}

.recently-viewed-section .discounted-currency {
    font-size: 14px;
    font-weight: 500;
    color: #F23434;
}

.recently-viewed-section .discounted-price {
    font-size: 18px;
    font-weight: 600;
    color: #F23434;
}

.recently-viewed-section .product-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.recently-viewed-section .quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.recently-viewed-section .qty-btn {
    background-color: #F5F5F5;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    color: #475467;
    transition: all 0.2s ease;
}

.recently-viewed-section .qty-btn:hover {
    background-color: #E5E7EB;
}

.recently-viewed-section .qty-input {
    width: 40px;
    border: none;
    text-align: center;
    font-size: 12px;
    color: #1D2939;
    font-weight: 600;
}

.recently-viewed-section .qty-input:focus {
    outline: none;
}

.recently-viewed-section .add-to-cart {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 2px;
    border: 1px solid #E4E7EC;
    background-color: #E4E7EC;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.recently-viewed-section .add-to-cart:hover {
    background-color: rgb(103, 105, 107);
}

.recently-viewed-section .add-to-cart img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.recently-viewed-section .add-to-cart:hover img {
    filter: brightness(0) invert(1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .recently-viewed-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 40px;
    }

    .recently-viewed-section .section-header {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .recently-viewed-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 40px;
    }

    .recently-viewed-section .section-header {
        padding: 0 40px;
    }

    .recently-viewed-section .product-title {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .recently-viewed-section {
        padding: 40px 0;
    }

    .recently-viewed-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 30px;
    }

    .recently-viewed-section .section-header {
        padding: 0 30px;
    }

    .recently-viewed-section .product-image {
        height: 100px;
    }

    .recently-viewed-section .product-title {
        font-size: 11px;
    }
}
