.stylist-page-wrap {
    padding: 32px 0 72px;
}

.stylist-hero {
    max-width: 720px;
    margin-bottom: 32px;
}

.stylist-hero h1 {
    font-family: var(--font-serif, Georgia, serif);
    font-weight: 400;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0 0 12px;
}

.stylist-hero-lead {
    color: var(--ink-muted, #6b6860);
    line-height: 1.6;
    margin: 0 0 8px;
}

.stylist-badge-soon {
    display: inline-block;
    font-size: 12px;
    padding: 6px 12px;
    background: #e8f0f5;
    color: #2c4a6e;
    border-radius: 999px;
    margin-top: 8px;
}

.stylist-panel {
    background: #fff;
    border: 1px solid var(--border, #e8e6e1);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 28px;
}

.stylist-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stylist-form-grid label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.stylist-form-grid select,
.stylist-form-grid input[type='number'] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    font-size: 15px;
}

.stylist-upload-zone {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background: #faf9f7;
    margin-bottom: 16px;
}

.stylist-upload-zone.has-photo {
    border-style: solid;
    text-align: start;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: center;
}

.stylist-upload-preview {
    width: 120px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 6px;
    background: #eee;
}

.stylist-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.stylist-consent input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
}

.stylist-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stylist-results-head {
    margin-bottom: 20px;
}

.stylist-results-head h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.stylist-looks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
}

.stylist-look-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* لوحة الطقم: صورتك + مصغّرات المنتجات (بدون مجسم وهمي) */
.stylist-look-board {
    position: relative;
    background: #f5f3ef;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.stylist-board-user {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 340px;
    object-fit: cover;
    object-position: center top;
}

.stylist-board-user--empty {
    aspect-ratio: 3 / 4;
    max-height: 340px;
    background: linear-gradient(180deg, #e8e4dc 0%, #d4cfc6 100%);
}

.stylist-board-outfit {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px 14px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 70%, transparent 100%);
    justify-content: center;
}

.stylist-board-piece {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    background: #fff;
    transition: transform 0.15s ease;
}

.stylist-board-piece:hover {
    transform: translateY(-2px);
}

.stylist-board-piece img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stylist-board-caption {
    margin: 0;
    padding: 10px 14px 12px;
    font-size: 11px;
    color: var(--ink-muted);
    line-height: 1.45;
    text-align: center;
    background: #fff;
}

.stylist-look-board--loading {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f3ef;
}

.stylist-board-loading-inner {
    text-align: center;
    padding: 24px;
    color: var(--ink-muted);
    font-size: 14px;
}

.stylist-look-board--error {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #fdf6f4;
    border: 1px solid #e8d4cf;
    border-radius: 8px;
}

.stylist-board-error-msg {
    margin: 0;
    text-align: center;
    font-size: 14px;
    color: #8b3a32;
    line-height: 1.5;
}

.stylist-board-wait-hint {
    margin: 0;
    font-size: 13px;
    color: var(--ink-muted);
    text-align: center;
}

.stylist-board-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border: 3px solid var(--border);
    border-top-color: var(--accent, #9c4f3d);
    border-radius: 50%;
    animation: stylistSpin 0.85s linear infinite;
}

@keyframes stylistSpin {
    to {
        transform: rotate(360deg);
    }
}

.stylist-look-board--composed {
    background: #1a1a1a;
}

.stylist-board-composed {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    object-position: center top;
    background: #2a2a2a;
}

.stylist-download-btn {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
}

.stylist-compose-btn {
    margin-bottom: 10px;
}

.stylist-ai-teaser--on {
    color: #4a3d6b;
    background: #f3f0f8;
}

.stylist-look-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stylist-look-title {
    font-weight: 600;
    margin: 0 0 8px;
}

.stylist-look-reason {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
}

.stylist-look-pieces {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    font-size: 13px;
}

.stylist-look-pieces li {
    padding: 4px 0;
    border-bottom: 1px solid #f0eeea;
}

.stylist-look-pieces a {
    color: inherit;
    text-decoration: none;
}

.stylist-look-pieces a:hover {
    text-decoration: underline;
}

.stylist-look-total {
    font-weight: 600;
    margin-bottom: 12px;
}

.stylist-look-total .compare {
    text-decoration: line-through;
    color: var(--ink-muted);
    font-weight: 400;
    margin-inline-start: 8px;
}

.stylist-ai-teaser {
    font-size: 11px;
    color: #2c4a6e;
    background: #eef2f7;
    padding: 8px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.stylist-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--ink-muted);
}

.stylist-loading {
    text-align: center;
    padding: 48px;
    color: var(--ink-muted);
}

@media (max-width: 600px) {
    .stylist-upload-zone.has-photo {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .stylist-upload-preview {
        margin: 0 auto;
    }
    .stylist-looks {
        grid-template-columns: 1fr;
    }
    .stylist-board-piece {
        width: 64px;
        height: 64px;
    }
}
