.bp-products-page,
.bp-product-detail-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 88px;
}

.bp-catalog-product-card-link {
    color: inherit;
    display: grid;
    gap: 6px;
    height: 100%;
    text-decoration: none;
    width: 100%;
}

.bp-products-header {
    margin-bottom: 24px;
}

.bp-products-header h1,
.bp-product-detail-heading h1 {
    margin: 4px 0 10px;
}

.bp-products-header p:last-child {
    color: var(--bp-muted, #667085);
    margin: 0;
}

.bp-products-toolbar {
    align-items: end;
    background: var(--bp-surface, #fff);
    border: 1px solid var(--bp-border, #e6e8ec);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(17, 19, 24, .05);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1.6fr) minmax(150px, 1fr) minmax(180px, 1fr) auto;
    margin-bottom: 22px;
    padding: 16px;
}

.bp-products-toolbar label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.bp-products-toolbar label span {
    color: var(--bp-muted, #667085);
    font-size: .78rem;
    font-weight: 700;
}

.bp-products-toolbar input,
.bp-products-toolbar select {
    background: #fff;
    border: 1px solid var(--bp-border, #e6e8ec);
    border-radius: 10px;
    min-height: 44px;
    min-width: 0;
    padding: 0 12px;
    width: 100%;
}

.bp-products-result-heading,
.bp-products-pagination {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 18px 0 12px;
}

.bp-products-result-heading p,
.bp-products-pagination span {
    color: var(--bp-muted, #667085);
    margin: 0;
}

.bp-products-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bp-product-card {
    background: var(--bp-surface, #fff);
    border: 1px solid var(--bp-border, #e6e8ec);
    border-radius: 16px;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bp-product-card:hover,
.bp-product-card:focus-visible {
    border-color: var(--bp-accent, #d93636);
    box-shadow: 0 12px 28px rgba(17, 19, 24, .1);
    transform: translateY(-2px);
}

.bp-product-card-media {
    align-items: center;
    aspect-ratio: 4 / 3;
    background: #f4f5f7;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.bp-product-card-media img,
.bp-product-detail-media img {
    height: 100%;
    object-fit: contain;
    object-position: center;
    width: 100%;
}

.bp-product-image-placeholder {
    align-items: center;
    color: #8b94a3;
    display: flex;
    font-size: .9rem;
    font-weight: 800;
    height: 100%;
    justify-content: center;
    letter-spacing: .08em;
    width: 100%;
}

.bp-product-image-placeholder-large {
    min-height: 0;
}

.bp-product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
    padding: 15px;
}

.bp-product-card-body strong {
    font-size: 1rem;
    line-height: 1.45;
}

.bp-product-manufacturer,
.bp-product-category,
.bp-product-related-count {
    color: var(--bp-muted, #667085);
    font-size: .8rem;
}

.bp-product-category {
    color: var(--bp-accent, #b42318);
    font-weight: 700;
}

.bp-product-related-count {
    margin-top: auto;
}

.bp-products-empty {
    background: var(--bp-surface, #fff);
    border: 1px dashed var(--bp-border, #e6e8ec);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
}

.bp-products-empty h2,
.bp-products-empty p {
    margin: 0;
}

.bp-products-empty p {
    color: var(--bp-muted, #667085);
    margin-top: 8px;
}

.bp-product-breadcrumb {
    align-items: center;
    color: var(--bp-muted, #667085);
    display: flex;
    flex-wrap: wrap;
    font-size: .82rem;
    gap: 8px;
    margin-bottom: 22px;
}

.bp-product-breadcrumb a {
    color: inherit;
}

.bp-product-detail-hero {
    align-items: center;
    background: var(--bp-surface, #fff);
    border: 1px solid var(--bp-border, #e6e8ec);
    border-radius: 20px;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    overflow: hidden;
    padding: 16px;
}

.bp-product-detail-media {
    aspect-ratio: 4 / 3;
    background: #f4f5f7;
    border-radius: 14px;
    overflow: hidden;
}

.bp-product-detail-heading {
    padding: 8px;
}

.bp-product-detail-heading > p:last-child {
    color: var(--bp-muted, #667085);
    line-height: 1.8;
}

.bp-product-detail-section {
    margin-top: 28px;
}

.bp-user-product-photos-section {
    margin-top: 24px;
}

.bp-product-detail-section h2 {
    margin-bottom: 14px;
}

.bp-product-gallery {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bp-product-gallery img {
    aspect-ratio: 1;
    border-radius: 12px;
    background: #f4f5f7;
    object-fit: contain;
    object-position: center;
    width: 100%;
}

.bp-related-bike-list,
.bp-product-shop-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bp-related-bike-card,
.bp-product-shop-link {
    background: var(--bp-surface, #fff);
    border: 1px solid var(--bp-border, #e6e8ec);
    border-radius: 12px;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 14px;
    text-decoration: none;
}

.bp-related-bike-card span {
    color: var(--bp-muted, #667085);
    font-size: .8rem;
}

.bp-product-shop-link {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    overflow-wrap: anywhere;
}

.bp-related-bike-card:hover,
.bp-related-bike-card:focus-visible,
.bp-product-shop-link:hover,
.bp-product-shop-link:focus-visible {
    border-color: var(--bp-accent, #d93636);
}

.bp-product-note {
    color: var(--bp-muted, #667085);
    font-size: .82rem;
    margin: 12px 0 0;
}

@media (max-width: 1024px) {
    .bp-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .bp-products-page,
    .bp-product-detail-page {
        padding-top: 22px;
        width: min(100% - 24px, 560px);
    }

    .bp-products-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .bp-products-toolbar label:first-child,
    .bp-products-toolbar .primary-button {
        grid-column: 1 / -1;
    }

    .bp-products-grid {
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bp-product-card-media {
        height: auto;
    }

    .bp-product-card-body {
        padding: 12px;
    }

    .bp-product-detail-hero {
        gap: 16px;
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .bp-product-detail-heading {
        padding: 6px;
    }

    .bp-product-gallery,
    .bp-related-bike-list,
    .bp-product-shop-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .bp-products-page,
    .bp-product-detail-page {
        width: min(100% - 16px, 560px);
    }

    .bp-products-toolbar {
        grid-template-columns: 1fr;
    }

    .bp-products-toolbar label:first-child,
    .bp-products-toolbar .primary-button {
        grid-column: auto;
    }

    .bp-products-grid {
        grid-template-columns: 1fr;
    }

    .bp-product-card-media {
        height: auto;
    }

    .bp-product-gallery,
    .bp-related-bike-list,
    .bp-product-shop-list {
        grid-template-columns: 1fr;
    }
}

.bp-user-product-photo-card-report-link {
    border-top: 1px solid var(--bp-border, #e6e8ec);
    font-size: .8rem;
    margin: 0;
    padding: 8px 11px 10px;
}

.bp-user-product-photo-card-report-link a {
    color: var(--bp-muted, #667085);
}

.bp-user-product-photo-report-message {
    border-radius: 10px;
    margin: 0 0 16px;
    padding: 10px 12px;
}

.bp-user-product-photo-report-message.error {
    background: #fff1f1;
    color: #a11a1a;
}

.bp-user-product-photo-report-message.info,
.bp-user-product-photo-report-message.success {
    background: #f1f8f3;
    color: #216b38;
}

.bp-user-product-photo-report {
    border-top: 1px solid var(--bp-border, #e6e8ec);
    margin-top: 20px;
    max-width: 720px;
    padding-top: 16px;
}

.bp-user-product-photo-report summary {
    color: var(--bp-muted, #667085);
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
}

.bp-user-product-photo-report form {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.bp-user-product-photo-report .form-row {
    display: grid;
    gap: 6px;
}

.bp-user-product-photo-report select,
.bp-user-product-photo-report textarea {
    border: 1px solid var(--bp-border, #e6e8ec);
    border-radius: 10px;
    font: inherit;
    padding: 10px 12px;
    width: 100%;
}

.bp-user-product-photo-report textarea {
    min-height: 96px;
    resize: vertical;
}

.bp-user-product-photo-login-prompt {
    margin-top: 20px;
}

.bp-product-section-heading-row,
.bp-user-product-photos-header,
.bp-user-product-photo-author {
    align-items: center;
    display: flex;
    gap: 14px;
}

.bp-product-section-heading-row {
    justify-content: space-between;
}

.bp-product-section-heading-row h2 {
    margin-bottom: 0;
}

.bp-user-product-photos-page,
.bp-user-product-photo-create-page,
.bp-user-product-photo-detail-page {
    margin: 0 auto;
    padding: 32px 0 88px;
    width: min(1180px, calc(100% - 32px));
}

.bp-user-product-photos-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
}

.bp-user-product-photos-header h1,
.bp-user-product-photos-header p {
    margin: 0;
}

.bp-user-product-photos-header p:last-child {
    color: var(--bp-muted, #667085);
}

.bp-user-product-photo-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bp-user-product-photo-card {
    background: var(--bp-surface, #fff);
    border: 1px solid var(--bp-border, #e6e8ec);
    border-radius: 16px;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
}

.bp-user-product-photo-card:hover,
.bp-user-product-photo-card:focus-visible,
.bp-user-product-photo-card:focus-within {
    border-color: var(--bp-accent, #d93636);
}

.bp-user-product-photo-card-link {
    color: inherit;
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-decoration: none;
}

.bp-user-product-photo-card-link > img {
    aspect-ratio: 4 / 3;
    background: #f4f5f7;
    object-fit: contain;
    width: 100%;
}

.bp-user-product-photo-card-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 10px 11px 11px;
}

.bp-user-product-photo-card small {
    color: var(--bp-muted, #667085);
}

.bp-user-product-photo-card-item-name {
    display: -webkit-box;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bp-user-product-photo-card-caption {
    color: inherit;
    display: -webkit-box;
    font-size: .86rem;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bp-user-product-photo-card-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: .78rem;
    gap: 4px;
    line-height: 1.35;
    min-width: 0;
    overflow-wrap: anywhere;
}

.bp-user-product-photo-card-meta > span:first-child {
    min-width: 0;
}

.bp-user-product-photo-card-meta-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    min-width: 0;
    padding: 0 11px 10px;
}

.bp-user-product-photo-card-meta-actions .bp-user-product-photo-card-meta {
    flex: 1 1 auto;
}

.bp-user-product-photo-like-form {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    margin: 0;
}

.bp-user-product-photo-like-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--bp-muted, #667085);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    gap: 4px;
    justify-content: center;
    min-height: 32px;
    padding: 4px 2px;
}

.bp-user-product-photo-like-button:hover,
.bp-user-product-photo-like-button:focus-visible,
.bp-user-product-photo-like-button.is-liked {
    color: var(--bp-accent, #d93636);
}

.bp-user-product-photo-like-button [data-user-product-photo-like-icon] {
    font-size: 20px;
    line-height: 1;
}

.bp-user-product-photo-like-button [data-user-product-photo-like-count] {
    font-size: .78rem;
    line-height: 1;
}

.bp-user-product-photo-like-message {
    color: var(--bp-muted, #667085);
    font-size: .75rem;
}

.bp-user-product-photo-detail-body > .bp-user-product-photo-like-form {
    align-self: flex-start;
}

.bp-user-product-photos-section > p:last-child {
    margin: 12px 0 0;
}

.bp-user-product-photo-create-link {
    margin-top: 18px;
}

.bp-user-product-photo-form {
    display: grid;
    gap: 16px;
    max-width: 720px;
}

.bp-user-product-photo-form .form-row {
    display: grid;
    gap: 6px;
}

.bp-user-product-photo-form input:not([type="file"]),
.bp-user-product-photo-form textarea {
    border: 1px solid var(--bp-border, #e6e8ec);
    border-radius: 10px;
    padding: 10px 12px;
    width: 100%;
}

.bp-user-product-photo-form textarea {
    min-height: 120px;
    resize: vertical;
}

.bp-user-product-photo-fixed-product {
    background: #f4f5f7;
    border-radius: 10px;
    display: grid;
    gap: 5px;
    padding: 14px;
}

.bp-user-product-photo-fixed-product span,
.bp-user-product-photo-author span {
    color: var(--bp-muted, #667085);
}

.bp-user-product-photo-rights {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    line-height: 1.5;
}

.bp-user-product-photo-rights input[type="checkbox"] {
    appearance: auto;
    border: 0;
    flex: 0 0 20px;
    height: 20px;
    margin: 2px 0 0;
    padding: 0;
    width: 20px;
}

.bp-user-product-photo-rights-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.bp-user-product-photo-rights-copy label {
    display: block;
}

.bp-user-product-photo-rights-helper,
.bp-user-product-photo-submit-note {
    color: var(--bp-muted, #667085);
    font-size: 0.82rem;
    margin: 0;
}

.bp-user-product-photo-submit-note {
    margin-top: -6px;
}

.bp-user-product-photo-detail-card {
    background: var(--bp-surface, #fff);
    border: 1px solid var(--bp-border, #e6e8ec);
    border-radius: 20px;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
    overflow: hidden;
    padding: 20px;
}

.bp-user-product-photo-detail-gallery {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bp-user-product-photo-detail-gallery figure {
    background: #f4f5f7;
    margin: 0;
    overflow: hidden;
}

.bp-user-product-photo-detail-gallery img {
    display: block;
    max-height: 620px;
    object-fit: contain;
    width: 100%;
}

.bp-user-product-photo-detail-body {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 14px;
}

.bp-user-product-photo-detail-body h1,
.bp-user-product-photo-detail-body p {
    margin: 0;
}

.bp-user-product-photo-caption {
    line-height: 1.8;
    white-space: pre-wrap;
}

.bp-user-product-photo-author img {
    border-radius: 50%;
    height: 34px;
    object-fit: cover;
    width: 34px;
}

@media (max-width: 720px) {
    .bp-user-product-photos-page,
    .bp-user-product-photo-create-page,
    .bp-user-product-photo-detail-page {
        padding-top: 22px;
        width: min(100% - 24px, 560px);
    }

    .bp-product-section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .bp-user-product-photo-grid {
        gap: 14px;
        grid-template-columns: 1fr;
    }

    .bp-user-product-photo-card-copy {
        padding: 10px 12px 12px;
    }

    .bp-user-product-photo-detail-card {
        grid-template-columns: 1fr;
        padding: 12px;
    }
}

@media (max-width: 380px) {
    .bp-user-product-photos-page,
    .bp-user-product-photo-create-page,
    .bp-user-product-photo-detail-page {
        width: min(100% - 16px, 560px);
    }

    .bp-user-product-photo-grid,
    .bp-user-product-photo-detail-gallery {
        grid-template-columns: 1fr;
    }
}
