.bike-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.bike-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.bike-card__image-link {
    display: block;
    background: #f8fafc;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.bike-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bike-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #6b7280;
    font-size: 0.95rem;
}

.bike-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
    gap: 16px;
}

.bike-card__top {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bike-card__brand {
    margin: 0 0 6px;
    color: #6b7280;
    font-size: 0.92rem;
}

.bike-card__title {
    margin: 0 0 10px;
    font-size: 1.1rem;
    line-height: 1.3;
}

.bike-card__title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.3em * 2);
    color: #0689f0;
    text-decoration: none;
}

.bike-card__title a:hover {
    color: #1d4ed8;
}

.bike-card__category {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bike-card__features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: calc(1.45em * 3 + 16px);
}

.bike-card__feature {
    position: relative;
    padding-left: 16px;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.45;
    min-height: calc(1.45em);
}

.bike-card__feature::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #1d4ed8;
    font-weight: 700;
}

.bike-card__price {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    min-height: 72px;
}

.bike-card__price small {
    display: block;
    margin: 0;
    color: #9ca3af;
    text-decoration: line-through;
    line-height: 1.2;
}

.bike-card__price span {
    display: block;
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.25;
    color: #111827;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-row > label {
    font-weight: 600;
}

.form-row input:not([type="checkbox"]):not([type="radio"]),
.form-row select,
.form-row textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}

.button:hover {
    background: #1e40af;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.filter-check-list {
    display: grid;
    gap: 10px;
    padding: 4px 0;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
}

.filter-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    flex: 0 0 16px;
}

.filter-check span {
    line-height: 1.35;
}

.filter-item-hidden {
    display: none;
}

.filter-toggle {
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1d4ed8;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.filter-toggle:hover {
    text-decoration: underline;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e3a8a;
    text-decoration: none;
    font-size: 0.95rem;
}

.active-filter-chip:hover {
    background: #dbeafe;
    text-decoration: none;
}

.active-filter-reset {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    color: #1d4ed8;
    text-decoration: none;
}

.active-filter-reset:hover {
    text-decoration: underline;
}

/* Detailpagina */

.catalog-card--spaced {
    margin-bottom: 24px;
}

.catalog-backlink-wrap {
    margin-bottom: 16px;
}

.catalog-backlink {
    color: #1d4ed8;
    text-decoration: none;
}

.catalog-backlink:hover {
    text-decoration: underline;
}

.bike-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.bike-detail-gallery {
    min-width: 0;
}

.bike-detail-gallery__main {
    margin-bottom: 18px;
}

.bike-detail-gallery__main-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 14px;
    background: #f8fafc;
    
}

.bike-detail-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.bike-gallery-thumb {
    display: block;
    padding: 0;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bike-gallery-thumb:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.bike-gallery-thumb.is-active {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.08);
}

.bike-gallery-thumb__image {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.bike-detail-content {
    min-width: 0;
}

.bike-detail-brand {
    margin: 0 0 6px;
    color: #6b7280;
}

.bike-detail-title {
    margin: 0 0 10px;
    line-height: 1.2;
    color: #0689f0;
}

.bike-detail-category {
    margin: 0 0 10px;
    color: #4b5563;
}

.bike-detail-price {
    margin: 0 0 18px;
}

.bike-detail-price__old {
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.bike-detail-price__current {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
}

.bike-detail-intro {
    margin: 0 0 18px;
    color: #374151;
    line-height: 1.6;
}

.bike-detail-specs {
    margin-bottom: 20px;
}

.bike-detail-section-title {
    margin: 0 0 10px;
    color: #111827;
}

.bike-detail-specs__list {
    display: grid;
    gap: 10px;
}

.bike-detail-spec {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 25px;
    background: #f9fafb;
    border-radius: 10px;
    max-width: 75%;
}

.bike-detail-spec__label {
    color: #111827;
}

.bike-detail-spec__value {
    color: #374151;
    text-align: right;
}

.bike-detail-cta {
    margin-top: 8px;
}

.bike-detail-features {
    margin: 0;
    padding-left: 20px;
}

.bike-detail-features__item {
    margin-bottom: 8px;
    color: #374151;
    line-height: 1.5;
}

.bike-detail-features__item:last-child {
    margin-bottom: 0;
}

.bike-detail-description {
    color: #374151;
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .bike-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bike-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .bike-grid {
        grid-template-columns: 1fr;
    }

    .bike-detail-gallery__thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bike-detail-spec {
        flex-direction: column;
        align-items: flex-start;
    }

    .bike-detail-spec__value {
        text-align: left;
    }
}

.catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 28px;
}

.catalog-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.catalog-pagination__link:hover {
    border-color: #1d4ed8;
    color: #1d4ed8;
    background: #eff6ff;
    text-decoration: none;
}

.catalog-pagination__link.is-active {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
}
.catalog-pagination__dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: #6b7280;
    font-weight: 600;
}
.catalog-mobile-filter-toggle {
    display: none;
}

@media (max-width: 767px) {
    .catalog-mobile-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        width: 100%;
        min-height: 56px;
        margin-bottom: 16px;
        padding: 0 18px;
        border: 2px solid #58b9b3;
        border-radius: 18px;
        background: #dff3f1;
        color: #58b9b3;
        font-size: 1.05rem;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    .catalog-mobile-filter-toggle:hover {
        background: #d6efec;
    }

    .catalog-mobile-filter-toggle.is-active {
        background: #58b9b3;
        color: #ffffff;
        border-color: #58b9b3;
    }

    .catalog-mobile-filter-toggle__icon {
        display: inline-flex;
        width: 26px;
        height: 26px;
    }

    .catalog-mobile-filter-toggle__icon svg {
        width: 100%;
        height: 100%;
    }

    .catalog-filters-panel {
        display: none;
    }

    .catalog-filters-panel.is-open {
        display: block;
        margin-bottom: 18px;
    }
}


.bike-detail-gallery__nav {
    display: none;
}

.bike-detail-gallery__dots {
    display: none;
}

.bike-detail-gallery__dot {
    padding: 0;
    border: 0;
    background: transparent;
}

@media (max-width: 767px) {
    .bike-detail-gallery__main {
        position: relative;
        margin-bottom: 14px;
    }

    .bike-detail-gallery__main-image {
        display: block;
        width: 100%;
        height: 100%;
        max-height: 560px;
        object-fit: cover;
        border-radius: 14px;
        background: #f8fafc;
    }

    .bike-detail-gallery__nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        width: 42px;
        height: 42px;
        border: 1px solid #d1d5db;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        color: #374151;
        font-size: 1.4rem;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    }

    .bike-detail-gallery__nav--prev {
        left: 10px;
    }

    .bike-detail-gallery__nav--next {
        right: 10px;
    }

    .bike-detail-gallery__dots {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 14px;
    }

    .bike-detail-gallery__dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: #d1d5db;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .bike-detail-gallery__dot.is-active {
        background: #1d4ed8;
        transform: scale(1.15);
    }

    .bike-detail-gallery__thumbs {
        display: none;
    }
}