:root {
    --navy-deepest: #060D1F;
    --navy-dark: #0D1E3D;
    --navy: #162B52;
    --navy-medium: #2A4580;
    --gold: #B8963E;
    --gold-light: #D4AF6A;
    --gold-pale: #EDD9A3;
    --champagne: #F7F0E3;
    --warm-white: #FDFAF5;
    --text-primary: #1C1C2E;
    --text-secondary: #5A5A7A;
    --border-subtle: #E8DDD0;
    --shadow-sm: 0 2px 12px rgba(12, 20, 50, 0.07);
    --shadow-md: 0 8px 32px rgba(12, 20, 50, 0.13);
    --shadow-lg: 0 20px 60px rgba(12, 20, 50, 0.2);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    background-color: var(--warm-white);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* ── Layout ─────────────────────────────────────── */
.showroom-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.showroom-header {
    background: var(--navy-dark);
    border-bottom: 1px solid rgba(184, 150, 62, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.showroom-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 2rem;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    gap: 1rem;
}

.showroom-nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--champagne);
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(184, 150, 62, 0.35);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.showroom-nav-link:hover {
    color: var(--gold-light);
    border-color: var(--gold);
    background: rgba(184, 150, 62, 0.1);
}

.showroom-brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.showroom-brand-gem {
    color: var(--gold);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.showroom-brand-text {
    display: flex;
    flex-direction: column;
}

.showroom-brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.1;
}

.showroom-brand-tagline {
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(212, 175, 106, 0.5);
    margin-top: 1px;
}

.showroom-main {
    flex: 1;
    padding: 1.25rem 1.5rem;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.showroom-footer {
    background: var(--navy-dark);
    border-top: 1px solid rgba(184, 150, 62, 0.18);
    padding: 1.1rem 2rem;
    text-align: center;
}

.showroom-footer-text {
    color: rgba(212, 175, 106, 0.45);
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 300;
}

/* ── Filter Bar ──────────────────────────────────── */
.filter-bar {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
}

.filter-bar .form-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.filter-bar .form-control,
.filter-bar .form-select {
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-primary);
    background-color: var(--warm-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    padding: 0.5rem 0.875rem;
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.12);
    background-color: #fff;
    outline: none;
}

.filter-bar .btn-outline-secondary {
    border: 1.5px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    transition: all 0.2s;
    background: transparent;
}

.filter-bar .btn-outline-secondary:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: var(--gold-light);
}

/* ── Item Cards ──────────────────────────────────── */
.item-card {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    height: 100%;
    position: relative;
}

.item-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1.5px solid transparent;
    transition: border-color 0.25s ease;
    pointer-events: none;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.item-card:hover::after {
    border-color: var(--gold-light);
}

.item-card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--champagne);
    overflow: hidden;
}

.item-card-img-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.item-card:hover .item-card-img-wrapper img {
    transform: scale(1.06);
}

.item-card-no-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-pale);
    font-size: 2.5rem;
}

.item-card-body {
    padding: 0.9rem 1rem;
}

.item-card-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.item-card-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.35rem;
}

.item-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.badge-category {
    background: var(--navy);
    color: var(--gold-pale);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 20px;
}

.badge-color {
    background: var(--champagne);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    font-size: 0.6rem;
    font-weight: 500;
    padding: 0.18rem 0.55rem;
    border-radius: 20px;
}

/* ── Empty / Loading States ──────────────────────── */
.empty-state {
    text-align: center;
    padding: 5rem 1rem;
}

.empty-state-icon {
    font-size: 3.5rem;
    color: var(--gold-pale);
    margin-bottom: 1.25rem;
    display: block;
}

.empty-state-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-sub {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 300;
}

.loading-state {
    text-align: center;
    padding: 5rem 1rem;
}

.loading-state .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 2px;
    color: var(--gold) !important;
}

.loading-state p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ── Item Count Bar ──────────────────────────────── */
.item-count-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.item-count-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* ── Modal ───────────────────────────────────────── */
.jewelry-modal .modal-dialog {
    max-width: 980px;
}

.jewelry-modal .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.jewelry-modal .modal-header {
    background: var(--navy-dark);
    color: var(--gold-light);
    border-bottom: 1px solid rgba(184, 150, 62, 0.25);
    padding: 1.1rem 1.5rem;
}

.jewelry-modal .modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.jewelry-image-preview {
    background: var(--navy-deepest);
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.jewelry-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jewelry-image-container .main-image {
    width: 100%;
    max-height: 440px;
    object-fit: contain;
    display: block;
}

.thumbnail-strip {
    display: flex;
    gap: 8px;
    padding: 0.75rem 1.25rem;
    flex-wrap: wrap;
    background: rgba(6, 13, 31, 0.6);
    border-top: 1px solid rgba(184, 150, 62, 0.15);
}

.thumbnail-strip img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}

.thumbnail-strip img.active,
.thumbnail-strip img:hover {
    border-color: var(--gold);
    transform: scale(1.05);
}

.jewelry-details {
    padding: 0.9rem 1.25rem;
    background: rgba(6, 13, 31, 0.82);
    color: #fff;
    border-top: 1px solid rgba(184, 150, 62, 0.18);
}

.jewelry-info-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.jewelry-title-section { flex: 1; }

.jewelry-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-light);
    line-height: 1.3;
}

.jewelry-specs-section { text-align: right; flex-shrink: 0; }

.jewelry-spec-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.2rem;
}

.jewelry-spec-value {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
}

.jewelry-price-overlay {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.modal-detail-panel {
    padding: 1.75rem;
    overflow-y: auto;
    max-height: 560px;
}

.modal-detail-heading {
    font-family: 'Playfair Display', serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--gold-pale);
    padding-bottom: 0.6rem;
    margin-bottom: 1.25rem;
}

.detail-row {
    display: flex;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--champagne);
    font-size: 0.875rem;
    align-items: baseline;
}

.detail-row:last-child { border-bottom: none; }

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 110px;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.detail-value {
    color: var(--text-primary);
    flex: 1;
}

.detail-value.price {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
}

/* ── Admin / Upload ──────────────────────────────── */
.admin-page-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1rem;
}

.admin-login-wrap {
    max-width: 440px;
    margin: 4rem auto 0;
}

.admin-login-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
}

.admin-login-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1.5px solid rgba(184, 150, 62, 0.35);
}

.admin-login-icon i {
    font-size: 1.5rem;
    color: var(--gold-light);
}

.admin-login-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.3rem;
}

.admin-login-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    margin-bottom: 2rem;
}

.log-viewer-content {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.78rem;
    line-height: 1.5;
    background: #1e1e2e;
    color: #cdd6f4;
    max-height: 70vh;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    display: block;
}

.admin-form-control {
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius);
    font-size: 0.9rem;
    padding: 0.6rem 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--warm-white);
    flex: 1 1 auto;
    min-width: 0;
    width: 1%;
    color: var(--text-primary);
}

.admin-form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.12);
    background: #fff;
    outline: none;
}

.admin-form-control.is-invalid {
    border-color: #dc3545;
}

.btn-admin-primary {
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
    border: 1px solid rgba(184, 150, 62, 0.3);
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
    width: 100%;
    margin-top: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-admin-primary:hover {
    background: linear-gradient(145deg, var(--navy-medium) 0%, var(--navy) 100%);
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 4px 16px rgba(12, 20, 50, 0.28);
}

/* Upload mode cards */
.upload-mode-card {
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.15s, transform 0.15s;
    background: var(--warm-white);
}

.upload-mode-card:hover {
    transform: translateY(-1px);
    border-color: var(--gold-light);
}

.upload-mode-card.selected {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.1);
}

/* Admin section cards */
.admin-section-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.admin-section-header {
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--warm-white);
}

.admin-section-body {
    padding: 1.25rem;
}

.admin-section-body .form-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.admin-section-body .form-control,
.admin-section-body .form-select {
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius);
    font-size: 0.875rem;
    padding: 0.55rem 0.875rem;
    background: var(--warm-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-section-body .form-control:focus,
.admin-section-body .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.12);
    background: #fff;
    outline: none;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-page-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Session badge */
.session-badge {
    background: var(--navy-dark);
    color: var(--gold-light);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Gold divider */
.gold-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
    margin: 1.5rem 0;
    opacity: 0.5;
}

/* ── Blazor Error ─────────────────────────────────── */
#blazor-error-ui {
    background: var(--navy-dark);
    color: var(--gold-light);
    bottom: 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    display: none;
    left: 0;
    padding: 0.75rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
    font-size: 0.875rem;
    border-top: 1px solid rgba(184, 150, 62, 0.3);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.65rem;
    color: var(--gold);
}

/* ── Showroom Page ────────────────────────────────── */
.showroom-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 2rem;
    width: 100%;
}

.showroom-page .gallery-slide-inner {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 1.25rem;
}

.showroom-page .gallery-search-input {
    background: #fff;
}

/* ── Showroom Welcome Header ──────────────────────── */
.showroom-welcome {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(184, 150, 62, 0.15);
}

.showroom-welcome-crest {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.showroom-welcome-line {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-pale));
}

.showroom-welcome-crest .showroom-welcome-line:last-child {
    background: linear-gradient(to left, transparent, var(--gold-pale));
}

.showroom-welcome-gem {
    color: var(--gold);
    font-size: 0.72rem;
    opacity: 0.85;
}

.showroom-welcome-eyebrow {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 0.55rem;
}

.showroom-welcome-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.55rem, 3.5vw, 2.15rem);
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.2;
    letter-spacing: 0.4px;
    margin: 0 0 0.35rem;
}

.showroom-welcome-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    font-weight: 400;
    font-style: italic;
    color: var(--navy-medium);
    margin: 0 0 1.35rem;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.showroom-welcome-lead {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.85;
    max-width: 44rem;
    margin: 0 auto 1.75rem;
    letter-spacing: 0.15px;
}

.showroom-welcome-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 52rem;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.showroom-welcome-highlight {
    position: relative;
    padding: 0 1rem;
}

.showroom-welcome-highlight:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(184, 150, 62, 0.25), transparent);
}

.showroom-welcome-highlight-icon {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.45rem;
    line-height: 1;
}

.showroom-welcome-highlight p {
    font-size: 0.76rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.showroom-welcome-footer {
    padding-top: 1.25rem;
    max-width: 46rem;
    margin: 0 auto;
    border-top: 1px solid rgba(184, 150, 62, 0.12);
}

.showroom-welcome-security {
    margin-bottom: 0.85rem;
}

.showroom-welcome-security-title {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--navy-medium);
    margin: 0 0 0.65rem;
    opacity: 0.85;
}

.showroom-welcome-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.showroom-welcome-pages span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.88rem;
    color: var(--navy-dark);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.showroom-welcome-pages-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.55;
    flex-shrink: 0;
}

.showroom-welcome-payments {
    font-size: 0.74rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.35px;
    line-height: 1.6;
    font-style: italic;
}

@media (max-width: 768px) {
    .showroom-welcome-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }

    .showroom-welcome-highlight {
        padding: 0;
    }

    .showroom-welcome-highlight:not(:last-child)::after {
        display: none;
    }

    .showroom-welcome-pages {
        flex-direction: column;
        gap: 0.4rem;
    }

    .showroom-welcome-pages-sep {
        display: none;
    }
}

@media (max-width: 576px) {
    .showroom-page {
        padding: 1rem 1rem 1.5rem;
    }

    .showroom-welcome {
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }
}

/* ── Gallery Icon Toolbar ─────────────────────────── */
.gallery-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.gallery-toolbar-icons {
    display: flex;
    gap: 0.4rem;
}

.toolbar-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border-subtle);
    background: #fff;
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}

.toolbar-icon-btn:hover {
    border-color: var(--gold-light);
    color: var(--text-primary);
    background: var(--champagne);
}

.toolbar-icon-btn.active {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: var(--gold-light);
}

.toolbar-icon-btn.has-value {
    border-color: var(--gold);
}

.toolbar-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    border: 1.5px solid #fff;
    position: absolute;
    top: 1px;
    right: 1px;
}

/* ── Sliding Search Panel ─────────────────────────── */
.gallery-slide-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                margin-bottom 0.32s ease,
                opacity 0.22s ease;
    margin-bottom: 0;
    opacity: 0;
}

.gallery-slide-panel.open {
    max-height: 260px;
    margin-bottom: 0.75rem;
    opacity: 1;
}

.gallery-slide-inner {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.5rem 1.25rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.gallery-slide-inner .form-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.gallery-slide-inner .form-select {
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius);
    font-size: 0.85rem;
    padding: 0.48rem 0.875rem;
    background: var(--warm-white);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gallery-slide-inner .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.1);
    outline: none;
}

.gallery-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.gallery-search-wrap .search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    pointer-events: none;
}

.gallery-search-input {
    width: 100%;
    border: 1.5px solid var(--border-subtle);
    border-radius: 40px;
    padding: 0.6rem 2.75rem 0.6rem 2.4rem;
    font-size: 0.875rem;
    background: #fff;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: 'Inter', sans-serif;
    box-shadow: var(--shadow-sm);
}

.gallery-search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.1);
}

.gallery-search-input::placeholder {
    color: #b8b8cc;
    font-weight: 300;
}

.gallery-search-clear {
    position: absolute;
    right: 0.9rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0;
    display: flex;
    align-items: center;
    line-height: 1;
    transition: color 0.15s;
}

.gallery-search-clear:hover { color: var(--text-primary); }

/* ── Sliding Filter Panel ─────────────────────────── */
.gallery-filter-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                margin-bottom 0.35s ease,
                opacity 0.25s ease;
    margin-bottom: 0;
    opacity: 0;
}

.gallery-filter-panel.open {
    max-height: 260px;
    margin-bottom: 1rem;
    opacity: 1;
}

.gallery-filter-inner {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.5rem 1.25rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.gallery-filter-panel .form-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.gallery-filter-panel .form-select {
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius);
    font-size: 0.85rem;
    padding: 0.48rem 0.875rem;
    background: var(--warm-white);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gallery-filter-panel .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.1);
    outline: none;
}

.gallery-clear-btn {
    background: none;
    border: none;
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    font-family: 'Inter', sans-serif;
    transition: color 0.15s;
}

.gallery-clear-btn:hover { color: var(--text-primary); }

/* ── Price Range Inputs ───────────────────────────── */
.price-range-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.price-range-input {
    flex: 1;
    min-width: 0;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius);
    font-size: 0.85rem;
    padding: 0.48rem 0.6rem;
    background: var(--warm-white);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}

.price-range-input::-webkit-outer-spin-button,
.price-range-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-range-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.1);
    outline: none;
    background: #fff;
}

.price-range-sep {
    color: var(--text-secondary);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ── Collection Banner ────────────────────────────── */
.collection-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 1.5rem 0 1.75rem;
    padding: 0 0.25rem;
}

.collection-banner-ornament {
    flex: 1;
    height: 1px;
    background: linear-gradient(to var(--ornament-dir, right), transparent, var(--gold-pale));
}

.collection-banner:has(.collection-banner-ornament:first-child) .collection-banner-ornament:first-child {
    --ornament-dir: right;
}

.collection-banner-ornament:last-child {
    background: linear-gradient(to left, transparent, var(--gold-pale));
}

.collection-banner-inner {
    text-align: center;
    flex-shrink: 0;
    max-width: 60%;
}

.collection-banner-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.collection-banner-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.collection-banner-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    font-weight: 300;
    letter-spacing: 0.4px;
    font-style: italic;
}

.collection-banner-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.45rem;
    font-size: 0.68rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.collection-banner-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.6;
}

/* ── Item Count ───────────────────────────────────── */
.gallery-count {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ── Uniform Gallery Grid ─────────────────────────── */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
}

@media (min-width: 480px)  { .gallery-masonry { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
@media (min-width: 768px)  { .gallery-masonry { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
@media (min-width: 1200px) { .gallery-masonry { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); } }

.gallery-masonry-item {
    min-width: 0;
}

/* ── Gallery Card ─────────────────────────────────── */
.gallery-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(232, 221, 208, 0.7);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
    display: block;
    width: 100%;
}

.gallery-card:hover {
    box-shadow: 0 6px 22px rgba(12, 20, 50, 0.16);
    transform: translateY(-2px);
    z-index: 2;
}

.gallery-card:hover .gallery-card-footer {
    background: var(--champagne);
}

.gallery-card-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--champagne);
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card-img {
    transform: scale(1.05);
}

.gallery-card-no-img {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--champagne);
    color: var(--gold-pale);
    font-size: 2rem;
}

.gallery-card-footer {
    padding: 0.45rem 0.65rem 0.5rem;
    border-top: 1px solid rgba(232, 221, 208, 0.8);
    transition: background 0.18s;
}

.gallery-card-name {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-card-cat {
    font-size: 0.58rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 1px;
    font-weight: 400;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    .showroom-header-inner { padding: 0.9rem 1rem; }
    .showroom-main { padding: 1.25rem 1rem; }
    .showroom-brand-name { font-size: 1.2rem; letter-spacing: 2px; }
    .showroom-brand-tagline { display: none; }
    .admin-login-wrap { margin-top: 2rem; }
    .admin-login-card { padding: 2rem 1.5rem; }
    .modal-detail-panel { max-height: none; }
    .jewelry-image-preview { min-height: 280px; }
}
