:root {
    --primary-blue: #0171e3;
    --primary-blue-hover: #0171e3;
    --text-dark: #1f2937;
    --text-gray: #9ca3af;
    --bg-white: #ffffff;
    --transition-speed: 0.3s;
    --font-main: 'Inter', sans-serif;
}

/* Reset inside widget */
.alteag-custom-gallery * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.alteag-custom-gallery {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: transparent !important;
    line-height: 1.5;
    width: 100%;
}

/* Filters Wrapper */
.alteag-custom-gallery .filters-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

/* Filter Buttons */
.alteag-custom-gallery .filter-btn {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-gray);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-transform: capitalize;
    letter-spacing: 0.025em;
    padding: 0;
}

.alteag-custom-gallery .filter-btn:hover {
    color: var(--primary-blue);
}

/* Active Pill Style (e.g., Velounterstände) */
.alteag-custom-gallery .filter-btn.active-pill {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--primary-blue);
    border-radius: 9999px;
    color: var(--primary-blue);
}

.alteag-custom-gallery .filter-btn.active-pill:hover {
    background-color: rgba(1, 113, 227, 0.05);
}

/* Active Text Style */
.alteag-custom-gallery .filter-btn.active-text {
    font-weight: 400;
    color: var(--primary-blue);
}

/* Gallery Grid */
.alteag-custom-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .alteag-custom-gallery .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .alteag-custom-gallery .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* Product Card */
.alteag-custom-gallery .product-card {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease;
}

.alteag-custom-gallery .product-card.hidden {
    display: none;
}

/* Card Image */
.alteag-custom-gallery .card-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: transparent !important;
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0px solid transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.alteag-custom-gallery .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-speed) ease;
    border: 0px solid transparent !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Card Content */
.alteag-custom-gallery .card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alteag-custom-gallery .product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Product Actions (Buttons) */
.alteag-custom-gallery .product-actions {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

.alteag-custom-gallery .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    width: 120px;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--font-main);
    border-radius: 9999px;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    text-align: center;
}

.alteag-custom-gallery .btn-primary {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    border: 1px solid var(--primary-blue);
}

.alteag-custom-gallery .btn-primary:hover {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
    color: var(--bg-white);
}

.alteag-custom-gallery .btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.alteag-custom-gallery .btn-outline:hover {
    border-color: var(--primary-blue-hover);
    background-color: var(--primary-blue-hover);
    color: var(--bg-white);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}