/* Reuse DoShop's storefront palette; keep modal geometry free of animations. */
.photo-dialog, .photo-results {
    --photo-accent: var(--theme-accent);
    --photo-surface: var(--theme-surface);
    --photo-text: var(--theme-text);
    --photo-muted: var(--theme-text-muted);
    --photo-border: var(--theme-border);
    --photo-soft: var(--theme-surface-muted);
    color: var(--photo-text);
}
.photo-dialog:not([open]) { display: none; }
.photo-dialog {
    position: fixed; inset: 0; width: min(48rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem); margin: auto; padding: 1.75rem;
    overflow: auto; overscroll-behavior: contain;
    border: 1px solid var(--photo-border); border-radius: var(--theme-radius-xl);
    background: var(--photo-surface); box-shadow: var(--theme-shadow-lg);
    animation: none; transition: none; font: inherit;
}
.photo-dialog::backdrop { background: var(--theme-overlay); animation: none; }
html.photo-search-open { overflow: hidden; scrollbar-gutter: stable; }
body.photo-search-open { overflow: hidden; }
.photo-dialog [hidden] { display: none !important; }
.photo-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.photo-dialog h2 { color: inherit; font-size: 1.65rem; font-weight: 700; line-height: 1.25; letter-spacing: -.035em; text-wrap: balance; margin: .5rem 0 0; }
.photo-eyebrow { font-size: .8rem; font-weight: 600; color: var(--photo-accent); }
.photo-eyebrow i { margin-inline-end: .35rem; }
.photo-close { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border: 1px solid var(--photo-border); border-radius: var(--theme-radius-md); background: var(--photo-surface); color: inherit; font-size: 1rem; }
.photo-close:hover { background: var(--photo-soft); }
.photo-intro { color: var(--photo-muted); margin: .75rem 0 1.25rem; line-height: 1.6; font-size: .9rem; }
.photo-drop { display: flex; flex-direction: column; align-items: center; gap: .65rem; padding: 2rem 1rem 1.5rem; text-align: center; border: 1px dashed var(--photo-border); border-radius: var(--theme-radius-xl); background: var(--photo-soft); }
.photo-drop > span, .photo-note { font-size: .82rem; line-height: 1.6; color: var(--photo-muted); }
.photo-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: .65rem 0; }
.photo-drop .photo-actions { justify-content: center; }
.photo-dialog .btn, .photo-results .btn { border-radius: var(--theme-radius-sm); padding: .65rem 1rem; font-size: .875rem; font-weight: 600; min-height: 42px; }
/* Beat the legacy .btn.btn-primary { color: #3d464d !important } rule,
   including template active/focus colours, without changing other pages. */
:is(.photo-dialog, .photo-results) .btn.btn-primary {
    background: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: var(--theme-on-primary) !important;
    filter: none;
}
:is(.photo-dialog, .photo-results) .btn.btn-primary:is(:hover, :focus, :active):not(:disabled):not(.disabled) {
    background: var(--theme-primary-hover) !important;
    border-color: var(--theme-primary-hover) !important;
    color: var(--theme-on-primary) !important;
}
:is(.photo-dialog, .photo-results) .btn.btn-primary:is(:disabled, .disabled) {
    background: var(--theme-surface-muted) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-text-muted) !important;
    opacity: 1;
    box-shadow: none;
    cursor: not-allowed;
}
:is(.photo-dialog, .photo-results) .btn.btn-primary :is(i, span) { color: inherit !important; }
.photo-dialog .btn-outline-secondary, .photo-results .btn-outline-secondary { background: var(--photo-surface); border-color: var(--photo-border); color: var(--photo-text); }
.photo-dialog .btn-outline-secondary:hover, .photo-results .btn-outline-secondary:hover { background: var(--photo-soft); }
.photo-dialog .btn-link, .photo-results .btn-link { color: var(--photo-accent); }
.photo-selection { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin: 1rem 0; }
.photo-selection canvas { width: 100%; max-height: 260px; object-fit: contain; border: 1px solid var(--photo-border); border-radius: var(--theme-radius-md); background: var(--photo-soft); }
.photo-selection strong { display: block; overflow-wrap: anywhere; }
.photo-selection p { color: var(--photo-muted); font-size: .85rem; margin: .5rem 0; }
.photo-selection summary { font-size: .875rem; font-weight: 600; padding: .5rem 0; cursor: pointer; }
.photo-selection label { display: block; margin-top: .6rem; font-size: .85rem; }
.photo-selection input[type=range] { display: block; width: 100%; margin-top: .4rem; accent-color: var(--photo-accent); }
.photo-consent { display: flex; align-items: start; gap: .6rem; font-size: .85rem; line-height: 1.5; margin: 1rem 0; }
.photo-consent input { margin-top: .2rem; flex-shrink: 0; }
.photo-note { margin: .85rem 0; }
.photo-error { color: var(--theme-danger-text); background: var(--theme-danger-bg); padding: .75rem; border-radius: var(--theme-radius-sm); }
.photo-progress { display: flex; gap: .75rem; align-items: center; padding: 1rem 0; font-size: .875rem; }
.photo-progress span { height: 8px; width: 8px; border-radius: 50%; background: currentColor; }
.photo-dialog-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .75rem; border-top: 1px solid var(--photo-border); padding-top: 1rem; margin-top: 1.25rem; background: var(--photo-surface); }
.photo-dialog :is(button, input, summary):focus-visible, .photo-results :is(button, a, input, select):focus-visible { outline: 2px solid var(--photo-accent); outline-offset: 3px; }
.photo-results { max-width: 1440px; margin: auto; padding: 1.5rem; }
.photo-results-heading { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem; margin-bottom: 1.5rem; background: var(--photo-surface); border: 1px solid var(--photo-border); border-radius: var(--theme-radius-md); }
.photo-query-preview { flex-shrink: 0; width: 104px; height: 104px; object-fit: contain; border: 1px solid var(--photo-border); border-radius: var(--theme-radius-md); background: #fff; }
.photo-results-heading h1 { color: inherit; font-size: 1.6rem; font-weight: 700; margin-bottom: .5rem; }
.photo-results-heading p { color: var(--photo-muted); font-size: .9rem; line-height: 1.6; max-width: 65ch; }
.photo-result-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; padding: 1.25rem; margin: 0; }
.photo-result-filters label { display: block; font-size: .85rem; margin: 0; font-weight: 600; }
.photo-result-filters .form-control { display: block; width: 100%; min-height: 42px; margin-top: .5rem; border-radius: var(--theme-radius-sm); }
.photo-filter-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .75rem; padding-top: .5rem; }
.photo-filter-actions .photo-stock-filter { display: flex; align-items: center; gap: .5rem; margin-inline-end: auto; }
.photo-result-summary { color: var(--photo-muted); font-size: .875rem; }
.photo-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.photo-result-match { font-size: .82rem; font-weight: 600; line-height: 1.45; margin: .6rem 0 .25rem; }
.photo-result-grid > article { min-width: 0; display: flex; flex-direction: column; }
.photo-result-grid > article > .modern-prod-card { height: auto; flex: 1; }
.photo-results .breadcrumb { background: transparent; padding: 0; }
.photo-results .breadcrumb a { color: var(--photo-accent); }
.photo-results .breadcrumb-item.active { color: var(--photo-muted); }
.photo-results :is(input.form-control, select.form-control) { background: var(--photo-surface); color: var(--photo-text); border-color: var(--photo-border); }
.photo-results input.form-control::placeholder { color: var(--photo-muted); opacity: 1; }
.photo-dialog input[type=checkbox], .photo-results input[type=checkbox] { accent-color: var(--theme-primary); }
.photo-empty { padding: 3rem 1rem; text-align: center; border: 1px solid var(--photo-border); background: var(--photo-surface); border-radius: var(--theme-radius-md); }
.photo-empty h2 { font-size: 1.3rem; color: inherit; }
.photo-empty p { max-width: 60ch; margin: 1rem auto; color: var(--photo-muted); }
.doshop-image-search-btn[hidden] { display: none !important; }
/* Centre with opposing insets, not a transform: the shared button:active scale
   used to replace translateY(-50%) and push the camera below the search bar. */
.doshop-image-search-btn {
    top: 0; bottom: 0; margin-block: auto;
    width: 32px; height: 32px; min-width: 32px; min-height: 32px;
    padding: 0; transform: none;
}
.doshop-image-search-btn:active { transform: none; }
.doshop-image-search-btn:focus { box-shadow: none; }
.doshop-input-wrap .doshop-image-search-btn:focus-visible { outline: 2px solid var(--theme-accent); outline-offset: -3px; }
@media (max-width: 991px) {
    .photo-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .photo-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); padding: 1rem; }
    .photo-dialog h2 { font-size: 1.2rem; }
    .photo-selection { grid-template-columns: 1fr; }
    .photo-selection canvas { max-height: 220px; }
    .photo-dialog-footer { position: static; }
    .photo-dialog-footer .btn { flex: 1 1 auto; }
    .photo-results { padding: 1rem .75rem; }
    .photo-results-heading { align-items: start; padding: 1rem; gap: .75rem; }
    .photo-results-heading h1 { font-size: 1.25rem; }
    .photo-query-preview { width: 64px; height: 64px; }
    .photo-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .photo-result-filters { padding: 1rem; gap: .75rem; }
    .photo-filter-actions .photo-stock-filter { width: 100%; }
    .photo-filter-actions .btn { flex: 1; }
}

/* Photo-led upload and a quieter, catalogue-style results workspace. */
.photo-steps { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; padding: 0; margin: 1.25rem 0; list-style: none; }
.photo-steps li { display: flex; align-items: center; gap: .45rem; color: var(--photo-muted); font-size: .78rem; }
.photo-steps li > span { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border: 1px solid var(--photo-border); border-radius: 50%; color: var(--photo-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.photo-upload-mark { position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: .5rem; border: 1px solid var(--photo-border); border-radius: var(--theme-radius-4xl); background: var(--photo-surface); color: var(--photo-accent); box-shadow: var(--theme-shadow-sm); }
.photo-upload-mark > i { font-size: 1.8rem; }
.photo-upload-mark > span { position: absolute; inset-inline-end: -7px; bottom: -4px; display: grid; place-items: center; width: 26px; height: 26px; background: var(--theme-primary); color: var(--theme-on-primary); border: 3px solid var(--photo-soft); border-radius: 50%; font-size: .6rem; }
.photo-drop > strong { font-size: 1.1rem; font-weight: 700; }
.photo-drop > span { max-width: 40ch; }
.photo-dialog .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.photo-drop .photo-actions { margin: .5rem 0; }
.photo-drop .photo-drop-hint { font-size: .72rem; }
.photo-guidance { padding-top: .5rem; }
.photo-guidance .photo-note { display: flex; align-items: flex-start; gap: .6rem; font-size: .78rem; margin: .7rem 0; }
.photo-guidance .photo-note > i { flex: 0 0 1rem; margin-top: .25rem; color: var(--photo-accent); }
.photo-selection { padding: 1rem; border: 1px solid var(--photo-border); border-radius: var(--theme-radius-xl); background: var(--photo-soft); }
.photo-selection canvas { min-height: 200px; background: var(--photo-surface); }
.photo-crop-controls > strong { font-size: .9rem; margin-top: .5rem; }
.photo-crop-controls details { margin-top: .75rem; border-top: 1px solid var(--photo-border); padding-top: .5rem; }
.photo-selection input[type=range] { min-height: 24px; }
.photo-dialog-footer { padding-top: 1.25rem; }
.photo-progress { border-radius: var(--theme-radius-md); background: var(--photo-soft); padding: .9rem; margin-top: .75rem; }
.photo-progress > span { width: 14px; height: 14px; background: transparent; border: 2px solid var(--photo-border); border-top-color: var(--photo-accent); animation: photo-search-spin .8s linear infinite; }
@keyframes photo-search-spin { to { transform: rotate(360deg); } }
.photo-query-frame { flex-shrink: 0; text-align: center; }
.photo-query-frame > span { display: block; margin-top: .5rem; font-size: .72rem; color: var(--photo-muted); }
.photo-results-title { flex: 1; min-width: 0; }
.photo-results-title h1 { margin-top: .5rem; letter-spacing: -.03em; }
.photo-results-title p { margin-bottom: 0; }
.photo-results-actions { display: flex; flex-direction: column; align-items: stretch; gap: .25rem; flex-shrink: 0; }
.photo-results-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 1.75rem; }
.photo-results-layout > aside, .photo-matches { min-width: 0; }
.photo-filter-panel { border: 1px solid var(--photo-border); border-radius: var(--theme-radius-lg); background: var(--photo-surface); }
.photo-filter-panel > summary { display: flex; justify-content: space-between; align-items: center; gap: .75rem; list-style: none; padding: 1.1rem 1.25rem; font-size: .9rem; font-weight: 700; cursor: pointer; }
.photo-filter-panel > summary::-webkit-details-marker { display: none; }
.photo-filter-panel > summary > i { font-size: .65rem; transition: transform .15s ease; }
.photo-filter-panel[open] > summary { border-bottom: 1px solid var(--photo-border); }
.photo-filter-panel[open] > summary > i { transform: rotate(180deg); }
.photo-filter-panel > summary:focus-visible { outline: 2px solid var(--photo-accent); outline-offset: -4px; border-radius: var(--theme-radius-lg); }
.photo-filter-actions { justify-content: stretch; }
.photo-filter-actions .photo-stock-filter { width: 100%; font-weight: 400; }
.photo-filter-actions > .btn { flex: 1; }
.photo-filter-help { display: flex; gap: .5rem; color: var(--photo-muted); font-size: .8rem; line-height: 1.65; padding: 1rem .25rem; margin: 0; }
.photo-filter-help i { margin-top: .25rem; }
.photo-matches-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .5rem; }
.photo-matches-toolbar h2 { color: var(--photo-text); font-size: 1.1rem; font-weight: 700; margin: 0; }
.photo-matches-toolbar > span { color: var(--photo-muted); font-size: .78rem; }
.photo-result-summary { font-size: .78rem; line-height: 1.6; margin-bottom: 1.25rem; max-width: 75ch; }
.photo-result-match { padding: .6rem .2rem; color: var(--photo-muted); font-size: .75rem; }
.photo-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: var(--theme-radius-3xl); background: var(--photo-soft); color: var(--photo-accent); font-size: 1.5rem; }
@media (max-width: 991px) {
    .photo-results-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; }
    .photo-results-heading { flex-wrap: wrap; }
    .photo-results-actions { flex-direction: row; flex-wrap: wrap; width: 100%; }
}
@media (max-width: 767px) {
    .photo-results-layout { grid-template-columns: minmax(0, 1fr); }
    .photo-result-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .photo-filter-help { padding-bottom: .25rem; }
}
@media (max-width: 600px) {
    .photo-dialog h2 { font-size: 1.35rem; }
    .photo-steps { gap: .5rem .8rem; }
    .photo-steps li { font-size: .72rem; }
    .photo-steps li > span { width: 1.2rem; height: 1.2rem; }
    .photo-drop { padding: 1.5rem .75rem 1rem; }
    .photo-upload-mark { width: 60px; height: 60px; }
    .photo-selection { padding: .75rem; }
    .photo-results-heading { gap: 1rem; }
    .photo-results-actions > .btn { flex: 1; }
    .photo-filter-panel > summary { padding: 1rem; }
    .photo-result-filters { padding: 1rem; }
    .photo-empty { padding: 2rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .photo-progress > span { animation: none; }
    .photo-filter-panel > summary > i { transition: none; }
}

/* ==========================================================================
   AI Generative Skeleton Component (ChatGPT-style) for Photo Search
   ========================================================================== */
.photo-ai-skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-top: 1rem;
    animation: photo-fade-in .35s ease;
}

@keyframes photo-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.photo-ai-banner {
    border-radius: var(--theme-radius-2xl);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.28);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
    overflow: hidden;
    position: relative;
}

.photo-ai-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.1rem 1.25rem 0.95rem;
}

.photo-ai-icon-box {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--theme-radius-xl);
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.photo-ai-icon-sparkle {
    animation: photo-pulse-glow 1.8s infinite ease-in-out;
}

@keyframes photo-pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 1; }
}

.photo-ai-text-wrap {
    flex: 1;
    min-width: 0;
}

.photo-ai-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--theme-radius-sm);
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.photo-ai-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--photo-text, #1e293b);
    line-height: 1.3;
}

.photo-ai-detail {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--photo-muted, #64748b);
    line-height: 1.4;
}

.photo-ai-scanline {
    height: 3px;
    background: rgba(16, 185, 129, 0.12);
    position: relative;
    overflow: hidden;
}

.photo-ai-scanline-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 45%;
    background: linear-gradient(90deg, transparent, #10b981, #06b6d4, transparent);
    animation: photo-scanline-sweep 1.8s infinite linear;
}

@keyframes photo-scanline-sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

.photo-ai-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.25rem;
}

.photo-ai-subbar-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--photo-text, #1e293b);
}

.photo-ai-subbar-title i {
    color: #10b981;
    font-size: 0.85rem;
}

.photo-ai-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.photo-ai-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    animation: photo-dots-bounce 1.3s infinite ease-in-out;
}

.photo-ai-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.photo-ai-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes photo-dots-bounce {
    0%, 80%, 100% { transform: scale(0.65); opacity: 0.4; }
    40% { transform: scale(1.2); opacity: 1; }
}

/* Skeleton Product Cards Grid */
.photo-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.photo-skeleton-card {
    background: var(--photo-surface, #fff);
    border: 1px solid var(--photo-border, #e2e8f0);
    border-radius: var(--theme-radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.photo-skeleton-img {
    height: 130px;
    background: var(--photo-soft, #f1f5f9);
    position: relative;
    overflow: hidden;
}

.photo-skeleton-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    height: 18px;
    width: 72px;
    border-radius: var(--theme-radius-pill);
    background: rgba(16, 185, 129, 0.28);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
    color: #059669;
    font-size: 9px;
}

.photo-skeleton-badge span {
    display: inline-block;
    height: 6px;
    width: 38px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--theme-radius-2xs);
}

.photo-skeleton-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.photo-skeleton-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.photo-skeleton-body {
    padding: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.photo-skeleton-line {
    height: 11px;
    border-radius: var(--theme-radius-pill);
    background: var(--photo-soft, #e2e8f0);
    position: relative;
    overflow: hidden;
}

.photo-skeleton-title1 { width: 100%; }
.photo-skeleton-title2 { width: 65%; }

.photo-skeleton-rating {
    display: flex;
    align-items: center;
    gap: 2.5px;
    margin-top: 2px;
}

.photo-skeleton-star {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--photo-soft, #e2e8f0);
    display: inline-block;
}

.photo-skeleton-reviews {
    display: inline-block;
    width: 22px;
    height: 7px;
    border-radius: var(--theme-radius-pill);
    background: var(--photo-soft, #e2e8f0);
    margin-left: 3px;
}

.photo-skeleton-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.photo-skeleton-price {
    width: 48px;
    height: 13px;
    border-radius: var(--theme-radius-xs);
    background: var(--photo-soft, #e2e8f0);
    position: relative;
    overflow: hidden;
}

.photo-skeleton-btn {
    width: 24px;
    height: 24px;
    border-radius: var(--theme-radius-sm);
    background: rgba(16, 185, 129, 0.16);
    position: relative;
    overflow: hidden;
}

/* Shimmer wave across all skeleton placeholders */
.photo-skeleton-img::after,
.photo-skeleton-line::after,
.photo-skeleton-price::after,
.photo-skeleton-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.65) 50%, transparent 100%);
    animation: photo-shimmer 1.5s infinite linear;
}

@keyframes photo-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.photo-demo-btn {
    margin-top: 0.5rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--theme-radius-4xl);
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    cursor: pointer;
    transition: all .15s ease;
}

.photo-demo-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #047857;
}

.photo-steps li.active {
    font-weight: 700;
    color: var(--photo-accent, #10b981);
}

.photo-steps li.active span {
    background: var(--theme-accent-strong);
    color: var(--theme-on-accent);
}

@media (max-width: 900px) {
    .photo-skeleton-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .photo-skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .photo-skeleton-img {
        height: 110px;
    }
    .photo-ai-title {
        font-size: 0.95rem;
    }
}
