.web-product-item-small {
    --wps-small-card-side-pad: 16px;
    --wps-small-card-action-gap: 5px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 150px;
    white-space: normal;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

.web-product-item-small:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.web-product-item-small .wps-small-card__link {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
}

.web-product-item-small .wps-small-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.web-product-item-small .wps-small-card__media {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1 / 1;
    overflow: hidden !important;
    border-radius: 12px 12px 0 0;
    background: #f8f9fa;
    position: relative;
}

.web-product-item-small .wps-small-card__media .carousel,
.web-product-item-small .wps-small-card__media .carousel-inner,
.web-product-item-small .wps-small-card__media .carousel-item,
.web-product-item-small .wps-small-card__media picture {
    width: 100% !important;
    height: 100% !important;
    margin-bottom: 0 !important;
    display: block !important;
}

.web-product-item-small .wps-small-card__media img,
.web-product-item-small .wps-small-card__media .carousel-item img,
.web-product-item-small .wps-small-card__media picture img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 auto !important;
}

.web-product-item-small .wps-small-card__media .carousel-indicators {
    bottom: 10px !important;
}

.web-product-item-small .wps-small-card__media .carousel-indicators li {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
}

.web-product-item-small .wps-small-card__media .carousel-control-prev,
.web-product-item-small .wps-small-card__media .carousel-control-next {
    width: 10% !important;
}

.web-product-item-small .wps-small-card__body,
.web-product-item-small .wps-small-card__body.product-card-body {
    padding: 5px var(--wps-small-card-side-pad) !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.web-product-item-small .wps-small-card__meta,
.web-product-item-small .wps-small-card__meta.product-attributes {
    font-size: 0.8rem !important;
    color: #777 !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
}

.web-product-item-small .wps-small-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

.web-product-item-small .wps-small-card__reviews {
    margin: 0;
}

.web-product-item-small .wps-small-card__price-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.web-product-item-small .wps-small-card__price-wrap .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.75rem;
}

.web-product-item-small .wps-small-card__price-wrap .discounted-price,
.web-product-item-small .wps-small-card__price {
    color: #ff6b35;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.web-product-item-small .wps-small-card__actions {
    width: 100%;
    padding: 0 var(--wps-small-card-side-pad) var(--wps-small-card-side-pad);
    margin-top: auto;
}

.web-product-item-small .wps-small-card__actions-row {
    display: flex;
    flex-direction: row;
    gap: var(--wps-small-card-action-gap);
    width: 100%;
    margin: 0 !important;
}

.web-product-item-small .wps-small-card__actions-row .btn {
    flex: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0 !important;
    padding: 0.5rem 0.35rem !important;
    min-height: 38px !important;
}

@media (max-width: 768px) {
    .web-product-item-small .wps-small-card__media {
        min-height: 200px;
    }

    .web-product-item-small .wps-small-card__actions-row .btn {
        padding: 0.375rem 0.25rem !important;
        font-size: 0.875rem !important;
        min-height: 32px !important;
        white-space: nowrap !important;
    }

    .web-product-item-small .wps-small-card__badge {
        top: 8px;
        left: 8px;
        padding: 3px 6px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .web-product-item-small .wps-small-card__media {
        min-height: 120px;
    }

    .web-product-item-small {
        --wps-small-card-side-pad: 8px;
        --wps-small-card-action-gap: 4px;
    }

    .web-product-item-small .wps-small-card__body,
    .web-product-item-small .wps-small-card__body.product-card-body {
        padding: 8px !important;
        gap: 6px;
    }

    .web-product-item-small .wps-small-card__title {
        font-size: 0.85rem;
    }

    .web-product-item-small .wps-small-card__meta,
    .web-product-item-small .wps-small-card__meta.product-attributes {
        font-size: 0.52rem !important;
        line-height: 1.15 !important;
        letter-spacing: 0.01em !important;
        font-weight: 600 !important;
        margin-bottom: 0 !important;
    }

    .web-product-item-small .wps-small-card__actions-row .btn {
        padding: 0.25rem 0.2rem !important;
        font-size: 0.75rem !important;
        min-height: 28px !important;
    }

    .web-product-item-small .wps-small-card__actions-row .btn i {
        font-size: 0.875rem !important;
    }

    .web-product-item-small .wps-small-card__badge {
        top: 6px;
        left: 6px;
        padding: 2px 5px;
        font-size: 0.65rem;
    }
}
