/* -------------------------------
   Amazing Affiliates - Amazon-style Cards
----------------------------------*/

/* Card wrapper: 170x210 like Amazon */
.amazing_product.wrapper {
    width: 170px;            /* card width */
    min-height: 210px;       /* card height */
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #eee;
    border-radius: 12px;
    background-color: #fff;
    box-sizing: border-box;
    overflow: hidden;
    margin: 8px;
}

/* Thumbnail container */
.amazing_product .product_thumbnail {
    max-height: 150px;        /* don’t allow taller than 150px */
    width: auto;              /* width adjusts to maintain aspect ratio */
    margin: 0 auto 8px auto;  /* center horizontally */
}

/* Thumbnail image itself */
.amazing_product .product_thumbnail img,
.amazing_product .product_thumbnail .product_img,
.amazing_product .product_thumbnail .no_img_found {
    max-height: 150px;        /* cap height */
    width: auto;              /* scale width automatically */
    object-fit: contain;      /* ensures the whole image fits inside box */
    border-radius: 12px;
    display: block;
    margin: 0 auto;           /* center image */
}

/* Title: left-aligned, truncated to 1 lines, no border */
.amazing_product .product_title {
    font-size: 14px;
    font-weight: 600;
    color: #96038A;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;       /* max 1 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    border-bottom: none;
}

/* Info container: price, other details */
.amazing_product .product_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
}

/* Prices */
.amazing_product .product_current_price,
.amazing_product .product_highlighted_price,
.amazing_product .product_list_price {
    font-size: 13px;
    margin: 0;
}

/* Highlighted price */
.amazing_product .product_highlighted_price {
    color: green;
    font-weight: bold;
}

/* List price */
.amazing_product .product_list_price {
    text-decoration: line-through;
    color: #767676;
}

/* Hide the yellow buy button */
.amazing_product .product_buybutton {
    display: none !important;
}

/* Percent-off badge */
.amazing_product .percent_off {
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    width: 32px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile responsiveness */
@media screen and (max-width: 440px) {
    .amazing_product.wrapper {
        width: 100%;
        max-width: none;
        margin: 8px 0;
    }
    .amazing_product .product_thumbnail {
        margin: 0 auto 8px auto;
    }
}

/* Prime icon */
.amz-pa-product-prime-icon .icon-prime-all {
    background: url("https://images-na.ssl-images-amazon.com/images/G/01/AUIClients/AmazonUIBaseCSS-sprite_2x_weblab_AUI_100106_T1-4e9f4ae74b1b576e5f55de370aae7aedaedf390d._V2_.png") no-repeat;
    display: inline-block;
    vertical-align: middle;
    width: 52px;
    height: 15px;
    margin-top: -1px;
    background-position: -192px -911px;
    background-size: 560px 938px;
}


/* Hide only label text */
.amazing_product .product_list_price::before,
.amazing_product .product_list_price_label,
.amazing_product .product_highlighted_price::before,
.amazing_product .product_highlighted_price_label,
.amazing_product .product_current_price_label {
    content: "" !important; /* remove text label */
    display: none !important;
}

/* Show only the actual numbers */
.amazing_product .product_list_price_value,
.amazing_product .product_current_price {
    display: inline-block !important;
    font-size: 14px;
    font-weight: bold;
    color: #000;
}