/* Plugin Theme: Black, White, and #ff997e */

.sgn-amazon-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sgn-amazon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.sgn-amazon-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eeeeee;
}

.sgn-amazon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.sgn-amazon-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #000000; /* Black background for images */
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.sgn-amazon-card:hover .sgn-amazon-image img {
    transform: scale(1.05);
}

.sgn-amazon-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}

.sgn-amazon-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111111; /* Deep Black */
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sgn-amazon-excerpt {
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sgn-amazon-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 10px;
}

.sgn-amazon-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #000000; /* Black */
}

.sgn-amazon-btn {
    background-color: #ff997e; /* Requested Orange */
    color: #000000;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.sgn-amazon-btn:hover {
    background-color: #ff8563; /* Slightly darker orange on hover */
    color: #000000;
    text-decoration: none;
}

.sgn-amazon-btn:active {
    transform: scale(0.98);
}

.sgn-amazon-empty {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 12px;
    color: #555555;
    font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
    .sgn-amazon-grid {
        grid-template-columns: 1fr;
    }
}
