/**
 * Tiltechniek Custom Grid Styles
 * Compatible with YOOtheme Pro / UIkit
 */

/* Grid container */
.tiltechniek-product-grid {
    margin-top: 0 !important;
    padding-top: 20px;
}

/* Grid items - default responsive behavior */
.tiltechniek-product-grid .tiltechniek-grid-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Filter buttons container */
.tiltechniek-grid-filters {
    margin-bottom: 10px !important;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tiltechniek-grid-filters .tiltechniek-filter-btn {
    margin: 0;
    transition: all 0.3s ease;
}

.tiltechniek-grid-filters .tiltechniek-filter-btn.uk-active {
    background-color: #505050;
    color: #fff;
}

/* Card styling enhancements */
.tiltechniek-product-grid .uk-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.tiltechniek-product-grid .uk-card:hover {
    text-decoration: none;
}

.tiltechniek-product-grid .uk-card-media-top {
    overflow: hidden;
}

.tiltechniek-product-grid .uk-card-media-top img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.tiltechniek-product-grid .uk-card:hover .uk-card-media-top img {
    transform: scale(1.05);
}

.tiltechniek-product-grid .uk-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tiltechniek-product-grid .uk-card-title {
    margin-top: 0;
    color: inherit;
}

.tiltechniek-product-grid .tiltechniek-grid-intro {
    margin-top: 10px;
    margin-bottom: 0;
    color: #666;
    line-height: 1.6;
}

/* Error and empty states */
.tiltechniek-grid-error,
.tiltechniek-grid-empty {
    padding: 20px;
    background-color: #f8f8f8;
    border-left: 4px solid #f0506e;
    margin: 20px 0;
}

.tiltechniek-grid-empty {
    border-left-color: #999;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .tiltechniek-grid-filters {
        flex-direction: column;
    }
    
    .tiltechniek-grid-filters .tiltechniek-filter-btn {
        width: 100%;
    }
}

