/* Static Square Product Grid As Deal CSS */

/* Container styling */
.widget-spgad-styles-container {
    background-color: #ffffff; /* White background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Product grid container */
.widget-spgad-product-grid {
    margin: 0 -8px; /* Negative margin to offset padding */
}

/* Product column */
.widget-spgad-product-col {
    padding: 0 8px;
}

/* Product image container */
.widget-spgad-product-image-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.widget-spgad-product-image-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Discount badge */
.widget-spgad-discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #cc0c39; /* Red background */
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-bottom-right-radius: 4px;
    z-index: 1;
}

/* Limited time deal text */
.widget-spgad-deal-text {
    color: #cc0c39; /* Red text */
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 4px;
}

/* Product title */
.widget-spgad-product-title {
    font-size: 0.85rem;
    font-weight: 400;
    color: #212121;
    margin: 8px 0;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 2.4em;
}

/* Price styling */
.widget-spgad-price-section {
    margin: 4px 0;
}

.widget-spgad-price-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212121;
}

/* See all deals links */
.widget-spgad-see-all,
.widget-spgad-see-all-bottom {
    color: #007185; /* Amazon-like link color */
    font-size: 0.9rem;
    text-decoration: none;
}

.widget-spgad-see-all:hover,
.widget-spgad-see-all-bottom:hover {
    color: #c7511f; /* Amazon-like hover color */
    text-decoration: underline;
}

/* Clickable card hover effect */
.widget-spgad-clickable-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget-spgad-clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .widget-spgad-product-image-container {
        height: 150px;
    }
    
    .widget-spgad-price-amount {
        font-size: 1rem;
    }
    
    .widget-spgad-product-title {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .widget-spgad-product-image-container {
        height: 130px;
    }
    
    .widget-spgad-discount-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .widget-spgad-deal-text {
        font-size: 0.75rem;
    }
}
