/**
 * Dreamers Art Gallery Widgets
 * Two separate widgets: Art Filter + Art Grid
 * No conflicting Wolmart classes — all dreamers-art-* prefixed.
 */

/* ── Art Filter List ──────────────────────────────────────────── */
.dreamers-art-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.9;
}

.dreamers-art-filter-list li {
    border-bottom: none;
}

.dreamers-art-filter-list li:not(:last-child) {
    margin-bottom: 0.4rem;
}

.dreamers-art-filter-list a {
    display: inline-block;
    padding: 0;
    color: var(--wolmart-body-color, #666);
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.2s;
}

.dreamers-art-filter-list a::before {
    display: none !important;
    content: none !important;
}

.dreamers-art-filter-list a:hover,
.dreamers-art-filter-list a.active {
    color: var(--wolmart-dark-color, #222);
    font-weight: 600;
}

/* ── Art Grid ─────────────────────────────────────────────────── */
.dreamers-art-grid {
    position: relative;
    min-height: 100px;
}

.dreamers-art-cards .product-wrap {
    margin-bottom: 2rem;
}

.dreamers-art-cards .product-media img {
    width: 100%;
    height: auto;
}

.dreamers-art-cards .product-details {
    text-align: center;
}

/* ── Status Badges ────────────────────────────────────────────── */
.dreamers-art-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.dreamers-art-badge {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.15em 0.6em;
    border-radius: 3px;
    color: #3bb77e;
    border: 1px solid #3bb77e;
    line-height: 1.4;
}

.dreamers-art-badge--cat {
    color: #e67e22;
    border-color: #e67e22;
}

/* ── Medium ───────────────────────────────────────────────────── */
.dreamers-art-medium {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #3bb77e;
    padding: 0.15em 0.6em;
    border-radius: 3px;
    margin-bottom: 0.4rem;
}

/* ── Artwork Title ────────────────────────────────────────────── */
.dreamers-art-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.dreamers-art-title a {
    color: var(--wolmart-dark-color, #222);
}

/* ── Artist Name ──────────────────────────────────────────────── */
.dreamers-art-artist {
    display: block;
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 0.2rem;
}

/* ── Dimensions ───────────────────────────────────────────────── */
.dreamers-art-dims {
    display: block;
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 0.2rem;
}

/* ── Price ─────────────────────────────────────────────────────── */
.dreamers-art-price {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wolmart-dark-color, #222);
}

.dreamers-no-artworks {
    padding: 2rem;
    text-align: center;
    color: #999;
    width: 100%;
}

/* ── Responsive columns ───────────────────────────────────────── */
@media (min-width: 576px) and (max-width: 767px) {
    .dreamers-art-cards {
        --wolmart-col: 3;
    }
}

@media (max-width: 575px) {
    .dreamers-art-cards {
        --wolmart-col: 2;
    }
}

/* ── Loading spinner ──────────────────────────────────────────── */
.dreamers-art-grid .dreamers-loading-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
    display: none;
}

.dreamers-art-grid .dreamers-loading-overlay i {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -17px;
    margin-top: -17px;
    width: 34px;
    height: 34px;
    border: 2px solid transparent;
    border-top-color: var(--wolmart-primary-color, #336699);
    border-radius: 50%;
    animation: dreamers-art-spin 0.75s infinite linear;
}

.dreamers-art-grid .dreamers-loading-overlay i::before {
    content: '';
    top: -2px;
    left: -2px;
    position: absolute;
    width: inherit;
    height: inherit;
    border: inherit;
    border-radius: inherit;
    animation: dreamers-art-spin 1.5s infinite ease;
}

.dreamers-art-grid.dreamers-loading .dreamers-loading-overlay {
    display: block;
}

@keyframes dreamers-art-spin {
    0%   { transform: none; }
    100% { transform: rotate(360deg); }
}
