/**
 * Dreamers Flowers Widgets
 * Two separate widgets: Strain Filter + Flowers Grid
 * No conflicting Wolmart classes — all dreamers-* prefixed.
 */

/* ── Strain Filter List ───────────────────────────────────────── */
.dreamers-strain-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.9;
}

.dreamers-strain-list li {
    border-bottom: none;
}

.dreamers-strain-list li:not(:last-child) {
    margin-bottom: 0.4rem;
}

.dreamers-strain-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-strain-list a::before {
    display: none !important;
    content: none !important;
}

.dreamers-strain-list a:hover,
.dreamers-strain-list a.active {
    color: var(--wolmart-dark-color, #222);
    font-weight: 600;
}

/* ── Flowers Grid ─────────────────────────────────────────────── */
.dreamers-flowers-grid {
    position: relative;
    min-height: 100px;
}

.dreamers-product-cards .product-wrap {
    margin-bottom: 2rem;
}

.dreamers-product-cards .product-media img {
    width: 100%;
    height: auto;
}

.dreamers-product-cards .product-details {
    text-align: center;
}

.dreamers-product-cards .product-cat {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    color: #999;
    margin-bottom: 0.2rem;
}

.dreamers-product-cards .product-cat a {
    color: inherit;
}

.dreamers-product-cards .woocommerce-loop-product__title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.dreamers-product-cards .woocommerce-loop-product__title a {
    color: var(--wolmart-dark-color, #222);
}

.dreamers-thc {
    display: block;
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 0.2rem;
}

.dreamers-product-cards .price {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wolmart-dark-color, #222);
}

.dreamers-no-products {
    padding: 2rem;
    text-align: center;
    color: #999;
    width: 100%;
}

/* ── Responsive columns ───────────────────────────────────────── */
@media (min-width: 576px) and (max-width: 767px) {
    .dreamers-product-cards {
        --wolmart-col: 3;
    }
}

@media (max-width: 575px) {
    .dreamers-product-cards {
        --wolmart-col: 2;
    }
}

/* ── Loading spinner ──────────────────────────────────────────── */
.dreamers-flowers-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-flowers-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: spin 0.75s infinite linear;
}

.dreamers-flowers-grid .dreamers-loading-overlay i::before {
    content: '';
    top: -2px;
    left: -2px;
    position: absolute;
    width: inherit;
    height: inherit;
    border: inherit;
    border-radius: inherit;
    animation: spin 1.5s infinite ease;
}

.dreamers-flowers-grid.dreamers-loading .dreamers-loading-overlay {
    display: block;
}

@keyframes spin {
    0%   { transform: none; }
    100% { transform: rotate(360deg); }
}
