/* assets/css/style.css */

.my-amazon-product-box {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    font-family: "Inter", sans-serif; /* Using Inter font */
}

.my-amazon-product-image {
    flex: 0 0 auto; /* Don't grow or shrink, take natural size */
    margin-right: 20px;
    border-radius: 6px;
    overflow: hidden; /* Ensures image corners are rounded */
}

.my-amazon-product-image img {
    max-width: 150px; /* Adjust image size as needed */
    height: auto;
    display: block;
    border-radius: 6px; /* Rounded corners for the image itself */
}

.my-amazon-product-info {
    flex: 1; /* Take up remaining space */
    min-width: 200px; /* Ensure info block doesn't get too narrow */
}

.my-amazon-product-title {
    font-size: 1.25em;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.my-amazon-product-title a {
    color: #0073aa; /* WordPress default link color */
    text-decoration: none;
    font-weight: 600;
}

.my-amazon-product-title a:hover {
    text-decoration: underline;
    color: #005177;
}

.my-amazon-product-price {
    font-size: 1.1em;
    color: #b12704; /* Amazon-like price color */
    margin-bottom: 8px;
    font-weight: bold;
}

.my-amazon-product-rating {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
}

.my-amazon-product-rating a {
    color: #0073aa;
    text-decoration: none;
}

.my-amazon-product-rating a:hover {
    text-decoration: underline;
}

.my-amazon-buy-button {
    display: inline-block;
    background-color: #FF9900; /* Amazon orange */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px; /* More rounded button */
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.my-amazon-buy-button:hover {
    background-color: #e68a00; /* Darker orange on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .my-amazon-product-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .my-amazon-product-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
