/* unnail-affiliate.css */

.unnail-affiliate-product {
    border: 1px solid #fde7e7;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 32px;
    align-items: center;
    margin: 32px 0;
    background: #fffdf7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.unnail-affiliate-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.product-image-wrapper {
    flex-shrink: 0;
}

.product-image-frame {
    position: relative;
    width: 150px;
    height: 150px;
    border: 2px solid #fde7e7;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-frame:hover {
    border-color: #fec2c2;
    box-shadow: 0 12px 25px rgba(254, 194, 194, 0.2);
    transform: scale(1.02);
}

.product-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-image-frame:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    color: #d68f8f;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    padding: 8px 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid #fde7e7;
}

.product-image-frame:hover .image-overlay {
    transform: translateY(0);
}

.unnail-affiliate-product .product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.unnail-affiliate-product .product-title {
    margin: 0 0 12px 0;
    font-family: 'Lora', serif;
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 700;
}

.unnail-affiliate-product .product-title a {
    color: #2c1c3e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.unnail-affiliate-product .product-title a:hover {
    color: #d68f8f;
}

.product-features {
    margin: 0 0 20px 0;
    padding-left: 20px;
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.5;
}

.product-features li {
    margin-bottom: 6px;
}

.product-action-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.unnail-affiliate-product .product-price {
    font-weight: bold;
    color: #B12704;
    /* Amazon Red/Brown */
    font-size: 1.4rem;
}

.amazon-btn {
    background: #f0c14b;
    background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
    border: 1px solid;
    border-color: #a88734 #9c7e31 #846a29;
    color: #111 !important;
    border-radius: 3px;
    padding: 10px 20px;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
    transition: background 0.1s;
}

.amazon-btn:hover {
    background: linear-gradient(to bottom, #f5d78e, #eeb933);
    border-color: #a88734 #9c7e31 #846a29;
}

/* Mobile Responsive Styles */
@media (max-width: 600px) {
    .unnail-affiliate-product {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
        gap: 20px;
    }

    .product-image-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .product-image-frame {
        width: 100%;
        max-width: 220px;
        height: auto;
        aspect-ratio: 1;
    }

    .product-features {
        text-align: left;
        display: inline-block;
    }

    .product-action-row {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .amazon-btn {
        width: 100%;
        justify-content: center;
    }
}