/* ============================================================================
   SPURA HUB v3 — Showroom public catalog + admin product media
   ============================================================================ */

.showroom-current-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.showroom-current-image {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-compact);
}

.showroom-current-image img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.showroom-remove-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--danger-50);
    color: var(--danger-600);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
}

.showroom-remove-label input[type='checkbox'] {
    margin: 0;
}

.showroom-header-bar {
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-800) 50%, var(--brand-700) 100%);
    color: var(--text-inverse);
    text-align: center;
}

.showroom-header-bar--compact {
    padding: 1.5rem 1rem;
    text-align: left;
}

.showroom-container {
    max-width: 1200px;
    margin: 0 auto;
}

.showroom-container--narrow {
    max-width: 800px;
}

.showroom-back-link {
    color: color-mix(in srgb, var(--text-inverse) 70%, transparent);
    font-size: 0.875rem;
    text-decoration: none;
}

.showroom-back-link:hover {
    color: var(--text-inverse);
}

.showroom-page-title {
    margin: 0.5rem 0 0;
    font-size: 2rem;
    font-weight: 700;
}

.showroom-section {
    padding: 3rem 1rem;
}

.showroom-section--alt {
    background: var(--bg-secondary);
}

.showroom-section-title {
    margin: 0 0 2rem;
    color: var(--ink-900);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
}

.showroom-hero {
    padding: 5rem 1rem;
    background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-800) 50%, var(--brand-700) 100%);
    color: var(--text-inverse);
    text-align: center;
}

.showroom-hero-title {
    margin: 0 0 1rem;
    font-size: 3rem;
    font-weight: 700;
}

.showroom-hero-subtitle {
    margin: 0 0 2rem;
    font-size: 1.25rem;
    opacity: 0.8;
}

.showroom-hero-cta {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-compact);
    background: var(--bg-surface);
    color: var(--ink-900);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.showroom-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--glass-ink-06);
}

.showroom-filters {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.showroom-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.showroom-search {
    flex: 1;
    min-width: 200px;
}

.showroom-search-input,
.showroom-filter-select {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color-strong);
    border-radius: var(--radius-compact);
    font-size: 0.875rem;
}

.showroom-filter-select {
    background: var(--bg-surface);
}

.showroom-filter-group {
    min-width: 160px;
}

.showroom-filter-btn {
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: var(--radius-compact);
    background: var(--brand-700);
    color: var(--text-inverse);
    font-weight: 600;
    cursor: pointer;
}

.showroom-filter-btn:hover {
    background: var(--ink-800);
}

.showroom-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.showroom-product-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-bubble);
    background: var(--bg-surface);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 8px var(--glass-ink-08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.showroom-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--glass-ink-12);
}

.showroom-product-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-secondary);
}

.showroom-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showroom-product-image--placeholder,
.showroom-main-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.showroom-product-info {
    padding: 1rem;
}

.showroom-product-name {
    margin: 0 0 0.5rem;
    color: var(--ink-900);
    font-size: 1rem;
    font-weight: 600;
}

.showroom-product-desc {
    margin: 0 0 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.showroom-product-price {
    margin: 0;
    color: var(--brand-700);
    font-size: 1.25rem;
    font-weight: 700;
}

.showroom-empty {
    padding: 3rem 1rem;
    color: var(--text-secondary);
    text-align: center;
}

.showroom-empty .btn-ghost {
    display: inline-block;
    margin-top: 1rem;
}

.showroom-cta,
.showroom-about-cta {
    margin-top: 2rem;
    text-align: center;
}

.showroom-btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-compact);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.showroom-btn-lg.btn-primary {
    background: var(--brand-700);
    color: var(--text-inverse);
}

.showroom-btn-lg.btn-primary:hover {
    background: var(--ink-800);
}

.showroom-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.showroom-category-card {
    padding: 1.5rem;
    border-radius: var(--radius-compact);
    background: var(--bg-surface);
    text-align: center;
    box-shadow: 0 1px 4px var(--glass-ink-06);
}

.showroom-category-card h3 {
    margin: 0;
    color: var(--ink-900);
    font-size: 1rem;
    font-weight: 600;
}

.showroom-about-content h2,
.showroom-about-content h3 {
    margin-top: 2rem;
    color: var(--ink-900);
}

.showroom-about-content h2:first-child,
.showroom-about-content h3:first-child {
    margin-top: 0;
}

.showroom-about-content p,
.showroom-about-content li {
    color: var(--ink-600);
    line-height: 1.7;
}

.showroom-about-content ul,
.showroom-about-content ol {
    padding-left: 1.5rem;
}

.showroom-about-content li {
    margin-bottom: 0.5rem;
}

.showroom-product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.showroom-product-gallery {
    position: sticky;
    top: 1rem;
}

.showroom-main-image {
    aspect-ratio: 1 / 1;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: var(--radius-bubble);
    background: var(--bg-secondary);
}

.showroom-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showroom-thumbnails {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.showroom-thumbnail {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: var(--radius-compact);
    background: var(--bg-secondary);
    cursor: pointer;
    padding: 0;
}

.showroom-thumbnail.active {
    border-color: var(--brand-700);
}

.showroom-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showroom-product-details {
    padding-top: 1rem;
}

.showroom-detail-title {
    margin: 0 0 0.5rem;
    color: var(--ink-900);
    font-size: 2rem;
    font-weight: 700;
}

.showroom-detail-sku {
    margin: 0 0 1rem;
    color: var(--text-secondary);
}

.showroom-detail-sku code {
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-xs);
    background: var(--bg-secondary);
}

.showroom-detail-price {
    margin: 0 0 2rem;
    color: var(--brand-700);
    font-size: 2rem;
    font-weight: 700;
}

.showroom-detail-description {
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.showroom-detail-description h3 {
    margin: 0 0 0.75rem;
    color: var(--ink-900);
    font-size: 1.125rem;
    font-weight: 600;
}

.showroom-detail-description p {
    margin: 0;
    color: var(--ink-600);
    line-height: 1.6;
}

.showroom-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.showroom-footer {
    padding: 2rem 1rem;
    background: var(--ink-900);
    color: var(--text-inverse);
    text-align: center;
}

.showroom-footer p {
    margin: 0 0 0.5rem;
    opacity: 0.8;
}

.showroom-footer-link {
    color: var(--text-inverse);
    opacity: 0.6;
    text-decoration: none;
}

.showroom-footer-link:hover {
    opacity: 1;
}

.showroom-admin-filter-field {
    min-width: 200px;
}

.showroom-admin-filter-field--narrow {
    min-width: 160px;
}

.showroom-admin-card-spaced {
    margin-top: 1.5rem;
}

.showroom-admin-card-body-flush {
    padding: 0;
}

.showroom-admin-page-current {
    cursor: default;
}

.showroom-admin-modal.hidden {
    display: none;
}

.showroom-admin-form-card {
    max-width: 720px;
}

.showroom-admin-help {
    margin-top: 0.25rem;
}

.showroom-admin-actions {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .showroom-product-detail {
        grid-template-columns: 1fr;
    }

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