/* Content shortcode product grids (AWIN feed) */

.shortcode-products-wrap {
    margin: var(--space-6) 0 var(--space-8);
}

/* Product grid placed after a size converter/calculator. */
.converter-products {
    margin-top: var(--space-6);
}

.shortcode-products-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.shortcode-products-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.shortcode-sponsored {
    margin-left: auto;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 0.1rem var(--space-2);
}

.shortcode-products {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.shortcode-product-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(25% - var(--space-4));
    min-width: 200px;
    max-width: calc(25% - var(--space-4));
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast) var(--transition-ease),
                box-shadow var(--transition-fast) var(--transition-ease);
}

.shortcode-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.shortcode-product-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--grey-100);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.shortcode-product-image--empty {
    background-color: var(--grey-100);
}

.shortcode-product-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3);
}

.shortcode-product-brand {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
}

.shortcode-product-name {
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shortcode-product-price {
    margin-top: var(--space-1);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.shortcode-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: var(--space-6);
}

.shortcode-load-more {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--white);
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-fast) var(--transition-ease);
}

.shortcode-load-more:hover {
    background: var(--primary-dark);
}

.shortcode-load-more.is-loading,
.shortcode-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .shortcode-product-card {
        flex-basis: calc(50% - var(--space-4));
        max-width: calc(50% - var(--space-4));
    }
}

@media (max-width: 520px) {
    .shortcode-product-card {
        flex-basis: 100%;
        max-width: 100%;
    }
}
