/* Widget wrapper styles */
.widget-vpl-wrapper {
    background-color: #fff3e0;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Widget Title Styles */
.widget-vpl-title-container {
    padding: 10px 0;
}

.widget-vpl-title {
    font-size: 1.25rem;
    color: #212121;
    margin: 0;
}

/* Widget Description Styles */
.widget-vpl-description-container {
    padding-bottom: 10px;
}

.widget-vpl-description {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.widget-vpl-product-card {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    position: relative;
}

.widget-vpl-product-content {
    display: flex;
    margin-bottom: 15px;
    min-height: 110px;
}

.widget-vpl-image-section {
    position: relative;
    width: 110px;
    min-width: 110px;
    height: auto;
    margin-right: 15px;
    align-self: center;
}

.widget-vpl-image-wrapper {
    position: relative;
    padding-bottom: 100%;
    height: 0;
    width: 100%;
}

.widget-vpl-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.widget-vpl-product-details {
    min-width: 0;
    flex: 1;
}

.widget-vpl-rating {
    background-color: #388e3c;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.875rem;
}

.widget-vpl-review-count {
    color: #666;
    font-size: 0.875rem;
}

.widget-vpl-product-title {
    font-size: 0.875rem;
    color: #212121;
    margin: 8px 0;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.widget-vpl-clickable-title {
    cursor: pointer;
    transition: color 0.2s;
}

.widget-vpl-clickable-title:hover {
    text-decoration: underline;
    color: #2196f3; /* Same blue as the Enquire button for consistency */
}

.widget-vpl-price-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
}

.widget-vpl-current-price {
    font-size: 1.25rem;
    font-weight: 500;
    color: #212121;
}

.widget-vpl-original-price {
    text-decoration: line-through;
    color: #666;
    font-size: 0.875rem;
}

.widget-vpl-discount {
    color: #388e3c;
    font-weight: 500;
    font-size: 0.875rem;
}

.widget-vpl-info-section {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-vpl-feature-tags-wrapper {
    position: relative;
    overflow-x: auto;
    margin: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.widget-vpl-feature-tags-wrapper::-webkit-scrollbar {
    display: none;
}

.widget-vpl-feature-tags {
    display: flex;
    gap: 8px;
    padding-bottom: 5px;
    white-space: nowrap;
}

.widget-vpl-feature-tag {
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    color: #212121;
    display: inline-block;
    flex-shrink: 0;
}

.widget-vpl-delivery-info {
    color: #ff6000;
    font-size: 0.875rem;
    white-space: nowrap;
}

.widget-vpl-emi-info {
    color: #212121;
    font-size: 0.875rem;
    white-space: nowrap;
}

.widget-vpl-button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.widget-vpl-btn-enquire, .widget-vpl-btn-whatsapp {
    flex: 1;
    padding: 8px 0;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.widget-vpl-btn-enquire {
    background-color: #2196f3;
    color: white;
}

.widget-vpl-btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.widget-vpl-badge-container {
    position: absolute;
    top: -8px;
    left: -8px;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.widget-vpl-dispatch-badge {
    background-color: #666;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Different badge styles based on product attributes */
.widget-vpl-badge-trending {
    background-color: #007bff; /* Blue for trending */
}

.widget-vpl-badge-bestseller {
    background-color: #28a745; /* Green for bestseller */
}

.widget-vpl-badge-limited {
    background-color: #dc3545; /* Red for limited stock */
}

.widget-vpl-badge-popularity {
    background-color: #17a2b8; /* Light blue for popularity */
}

.widget-vpl-play-button {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
    color: red;
    font-size: 1.5rem;
}

@media (max-width: 576px) {
    .widget-vpl-wrapper {
        padding: 15px;
        margin: 20px 0;
    }
    
    .widget-vpl-product-title {
        font-size: 0.75rem;
    }

    .widget-vpl-current-price {
        font-size: 1rem;
    }

    .widget-vpl-original-price,
    .widget-vpl-discount,
    .widget-vpl-emi-info,
    .widget-vpl-delivery-info {
        font-size: 0.7rem;
    }

    .widget-vpl-feature-tag {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .widget-vpl-btn-enquire, .widget-vpl-btn-whatsapp {
        font-size: 0.75rem;
        padding: 6px 0;
    }

    .widget-vpl-rating {
        font-size: 0.75rem;
        padding: 1px 6px;
    }

    .widget-vpl-review-count {
        font-size: 0.7rem;
    }
    
    /* Responsive badge styling for mobile */
    .widget-vpl-dispatch-badge {
        font-size: 0.65rem;
        padding: 1px 6px;
    }
    
    .widget-vpl-badge-container {
        gap: 3px;
    }
}
