/* Amazon Affiliate Modern Widgets Styles */

:root {
    --aamw-primary: #FF9900;
    --aamw-secondary: #232F3E;
    --aamw-glass-bg: rgba(255, 255, 255, 0.7);
    --aamw-glass-border: rgba(255, 255, 255, 0.5);
    --aamw-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --aamw-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.aamw-product-card-container {
    perspective: 1000px;
    padding: 20px;
}

.aamw-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
}

.aamw-product-card {
    background: var(--aamw-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: var(--aamw-shadow);
    padding: 25px;
    transition: var(--aamw-transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.aamw-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Badge */
.aamw-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--aamw-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Image */
.aamw-image-wrapper {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: white;
}

.aamw-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.aamw-product-card:hover .aamw-image-wrapper img {
    transform: scale(1.1);
}

/* Content */
.aamw-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.aamw-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #fff !important;
}

/* Rating */
.aamw-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #FFB400;
    font-size: 0.9rem;
}

.aamw-rating-text {
    margin-left: 8px;
    color: #666;
    font-size: 0.8rem;
}

/* Description */
.aamw-description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer & Price */
.aamw-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.aamw-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aamw-secondary);
}

/* Button */
.aamw-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--aamw-secondary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.aamw-button i {
    margin-left: 8px;
}

.aamw-button:hover {
    background: var(--aamw-primary);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.4);
    color: white;
}

/* Glassmorphism Dark Mode Support (optional, based on theme) */
@media (prefers-color-scheme: dark) {
    /* Adjustments for dark mode if needed */
}