.nll-product-widget {
    direction: rtl
}

.nll-product-widget .nll-product-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.nll-product-widget .nll-product-widget-content {
    display: block !important;
    width: 100% !important
}

.nll-product-widget-header .nll-product-widget-title {
    font-size: 36px;
    font-weight: 900;
    color: #383C79
}

.nll-product-widget-header .nll-product-widget-dropdown {
    font-size: 16px;
    color: #383C79;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px 12px;
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23383C79" width="16px" height="16px"%3E%3Cpath d="M7 10l5 5 5-5z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 16px;
    cursor: pointer;
    outline: none;
    width: 250px
}

.nll-product-widget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px
}

.nll-product-card {
    background-color: #F2F2F7aa;
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
    padding: 16px;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative
}

.nll-product-image-container {
    position: relative;
    margin-bottom: 12px
}

.nll-product-image-container img {
    width: 100%;
    height: auto;
    border-radius: 16px !important;
    display: block
}

.nll-product-card-badges {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    z-index: 1
}

.nll-badge {
    background-color: #404040;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    opacity: .8
}

.nll-product-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    text-align: right;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.nll-product-card h3 a {
    text-decoration: none !important;
}

.nll-product-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    color: #8C8C8C;
    font-size: 14px;
    font-weight: 600
}

.nll-meta-item {
    display: flex;
    align-items: center;
    gap: 5px
}

.nll-meta-item img {
    width: 25px;
    height: 25px;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain
}

.nll-product-card-instructor {
    font-size: 15px;
    color: #777;
    margin-bottom: 10px;
    text-align: right;
}

.nll-instructor {
    font-size: 16px;
    color: #000;
    font-weight: 600;
    line-height: 1.5;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.nll-product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px
}

.nll-product-card-price {
    font-size: 16px;
    color: #383C79;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.nll-product-card-price .regular-price {
    color: #8C8C8C;
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 400;
}

.nll-product-card-price .sale-price {
    color: #383C79;
    font-size: 16px;
    font-weight: 700;
}

.nll-product-card-price .discount-badge {
    background-color: #FFD700;
    color: #000;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
}

.nll-product-card-button {
    display: inline-block;
    background-color: #383C79;
    color: #fff !important;
    padding: 5px 20px;
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 700;
    transition: background-color .3s ease
}

.nll-product-card-button:hover {
    background-color: #2c2f6b
}

.nll-product-card a {
    text-decoration: none;
    color: inherit
}

.nll-show-more-button {
    padding: 12px 16px;
    font-size: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #D9D9D9;
    text-decoration: none !important;
    color: #383C79 !important;
    margin: 30px auto;
    display: block;
    text-align: center;
    width: fit-content
}

@media screen and (max-width: 1024px) {
    .nll-product-card h3 {
        font-size: 18px;
    }

    .nll-product-widget-grid {
        grid-template-columns: repeat(1, 1fr)
    }

    .nll-product-widget-header .nll-product-widget-title {
        font-size: 22px
    }
}

@media screen and (max-width: 768px) {
    .nll-product-widget-header .nll-product-widget-title {
        font-size: 22px
    }

    .nll-product-widget-header .nll-product-widget-dropdown {
        width: 200px;
        font-size: 14px
    }
}