/* Smart Cascading Woo Filter - Products Grid Template */
.scwf-products-container.scwf-template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px;
}

@media (max-width: 992px) {
    .scwf-products-container.scwf-template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .scwf-products-container.scwf-template-grid {
        grid-template-columns: 1fr;
    }
}

.scwf-products-container.scwf-template-grid .scwf-grid-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.scwf-products-container.scwf-template-grid .scwf-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.scwf-products-container.scwf-template-grid .scwf-product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8fafc;
}

.scwf-products-container.scwf-template-grid .scwf-product-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.scwf-products-container.scwf-template-grid .scwf-grid-card:hover .scwf-product-thumb {
    transform: scale(1.05);
}

.scwf-products-container.scwf-template-grid .scwf-product-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.scwf-products-container.scwf-template-grid .scwf-product-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.scwf-products-container.scwf-template-grid .scwf-product-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s;
}

.scwf-products-container.scwf-template-grid .scwf-product-title a:hover {
    color: #2563eb;
}

.scwf-products-container.scwf-template-grid .scwf-product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 16px;
    margin-top: auto;
}

.scwf-products-container.scwf-template-grid .scwf-add-to-cart-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
    border: none;
}

.scwf-products-container.scwf-template-grid .scwf-add-to-cart-btn:hover {
    background: #2563eb;
}

.scwf-count-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 12px;
    margin-left: 8px;
}