.web-product-item-small {
    --wps-small-card-side-pad: 0.5rem;
    --wps-small-card-action-gap: 0.35rem;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: none;
    white-space: normal;
    border: 1px solid #e5e7eb;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    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;
    min-height: 112px;
    overflow: hidden !important;
    border-radius: 12px 12px 0 0;
    background: #f8fafc;
    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: 0.5rem var(--wps-small-card-side-pad) 0.2rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.web-product-item-small .wps-small-card__meta,
.web-product-item-small .wps-small-card__meta.product-attributes {
    margin: 0 0 0.3rem !important;
    font-size: 0.64rem !important;
    color: #667085 !important;
    line-height: 1.18 !important;
    font-weight: 600 !important;
}

.web-product-item-small .wps-small-card__title {
    margin: 0 0 0.38rem;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    word-break: break-word;
}

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

.web-product-item-small .wps-small-card__price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    margin-top: auto;
    margin-bottom: 0.42rem;
}

.web-product-item-small .wps-small-card__price-wrap .original-price {
    text-decoration: line-through;
    color: #6b7280;
    font-size: 0.68rem;
    line-height: 1.15;
    font-weight: 500;
}

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

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

.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;
    min-width: 0;
    padding: 0.34rem 0.2rem !important;
    min-height: 35px !important;
    border-radius: 10px !important;
    font-size: 0.64rem !important;
    line-height: 1.1 !important;
    gap: 0.2rem !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.web-product-item-small .wps-small-card__actions-row .btn i {
    margin-right: 0 !important;
    font-size: 0.82rem !important;
    flex-shrink: 0;
}

.web-product-item-small .wps-small-card__actions-row .btn span {
    display: inline-block;
    min-width: 0;
    white-space: nowrap;
}

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

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

    .web-product-item-small .wps-small-card__price-wrap .discounted-price,
    .web-product-item-small .wps-small-card__price {
        font-size: 1rem;
    }
}

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

    .web-product-item-small .wps-small-card__body,
    .web-product-item-small .wps-small-card__body.product-card-body {
        padding: 0.8rem !important;
        gap: 0.5rem;
    }

    .web-product-item-small .wps-small-card__meta,
    .web-product-item-small .wps-small-card__meta.product-attributes {
        font-size: 0.72rem !important;
        margin-bottom: 0.38rem !important;
    }

    .web-product-item-small .wps-small-card__title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .web-product-item-small .wps-small-card__price-wrap .discounted-price,
    .web-product-item-small .wps-small-card__price {
        font-size: 1.08rem;
    }

    .web-product-item-small .wps-small-card__price-wrap .original-price {
        font-size: 0.76rem;
    }

    .web-product-item-small .wps-small-card__actions-row .btn {
        min-height: 40px !important;
        font-size: 0.8rem !important;
    }

    .web-product-item-small .wps-small-card__badge {
        top: 0.62rem;
        left: 0.62rem;
        padding: 0.26rem 0.54rem;
        font-size: 0.7rem;
    }
}

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