/* AliExpress Product Widget */

.apw-card {
    display: flex;
    align-items: stretch;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    background: #fff;
    width: 600px;
    max-width: 100%;
    margin: 1em auto;
}

.apw-card:hover,
.apw-card:active {
    box-shadow: none;
    transform: none;
    background: #fff;
    text-decoration: none;
    color: inherit;
    opacity: 1;
}

.apw-card:focus {
    outline: 2px solid #5A65FD;
    outline-offset: 2px;
}

/* Left: product image */
.apw-image {
    flex: 0 0 160px;
    min-height: 160px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.apw-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right: info */
.apw-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
}

.apw-logo {
    width: 90px;
    height: auto;
    display: block;
    opacity: 0.85;
}

.apw-title {
    font-size: 1em;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.apw-price {
    font-size: 1.25em;
    font-weight: 700;
    color: #5A65FD;
}

.apw-coupon {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 600;
    color: #5A65FD;
    border: 1px dashed #5A65FD;
    border-radius: 4px;
    padding: 2px 8px;
    width: fit-content;
}

.apw-cta {
    display: inline-block;
    width: fit-content;
    font-size: 0.9em;
    font-weight: 600;
    color: #fff;
    background: #5A65FD;
    padding: 6px 16px;
    border-radius: 6px;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 480px) {
    .apw-card {
        flex-direction: column;
        max-width: 100%;
    }

    .apw-image {
        flex: none;
        width: 100%;
        height: 200px;
    }
}
