/* Sell page — multi-step form, photos, sticky CTA */

.sell-progress {
    display: flex;
    gap: 0;
    margin: 0 0 28px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
}

.sell-progress-step {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    border-right: 1px solid var(--border);
    transition: background .2s, color .2s;
}

.sell-progress-step:last-child { border-right: none; }

.sell-progress-step.is-active {
    background: var(--navy);
    color: #fff;
}

.sell-progress-step.is-done {
    background: #ecfdf5;
    color: #166534;
}

.sell-step { display: none; }
.sell-step.is-active { display: block; }

.sell-step-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: space-between;
}

.sell-step-actions .btn { min-width: 140px; }

.sell-photo-optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: .875rem;
}

.sell-photo-zone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background: var(--bg);
    cursor: pointer;
    transition: border-color .2s, background .2s;
    outline: none;
}

.sell-photo-zone:focus-visible {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .25);
}

.sell-photo-zone:hover:not(.is-full),
.sell-photo-zone.is-dragover {
    border-color: var(--orange);
    background: #fffbeb;
}

.sell-photo-zone.is-full {
    cursor: default;
    opacity: .92;
}

.sell-photo-zone input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.sell-photo-zone-prompt {
    pointer-events: none;
}

.sell-photo-zone-prompt .btn,
.sell-photo-toolbar,
.sell-photo-previews {
    pointer-events: auto;
}

.sell-photo-zone-title {
    margin: 0;
    font-weight: 600;
    color: var(--navy);
}

.sell-photo-zone-desc {
    margin: 8px 0 12px;
    font-size: .8125rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.sell-photo-zone-desc kbd {
    display: inline-block;
    padding: 1px 5px;
    font-size: .75rem;
    font-family: inherit;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.sell-photo-zone-hint {
    margin: 10px 0 0;
    font-size: .8rem;
    color: var(--text-muted);
}

.sell-photo-count {
    margin: 10px 0 0;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--navy);
    min-height: 1.25em;
}

.sell-photo-toolbar {
    margin-top: 12px;
    text-align: center;
}

.sell-photo-clear-all {
    background: none;
    border: none;
    color: #b45309;
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
}

.sell-photo-clear-all:hover {
    color: #92400e;
}

.sell-photo-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-start;
    text-align: left;
}

.sell-photo-thumb {
    position: relative;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
}

.sell-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: block;
    background: #e2e8f0;
}

.sell-photo-thumb.is-error {
    background: #fee2e2;
    border: 1px dashed #fca5a5;
    border-radius: 8px;
}

.sell-photo-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: #1e293b;
    color: #fff;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    padding: 0;
}

.sell-photo-remove:hover {
    background: #dc2626;
}

.sell-trust-line {
    font-size: .8125rem;
    color: var(--text-muted);
    margin: -8px 0 20px;
}

.sell-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 850;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .1);
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform .25s ease;
}

.sell-sticky-cta.is-visible {
    transform: translateY(0);
}

.sell-sticky-inner {
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.sell-sticky-inner .btn {
    flex: 1;
    justify-content: center;
    font-size: .8rem;
    padding: 10px 8px;
}

.sell-sticky-inner .btn-whatsapp {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

@media (min-width: 901px) {
    .sell-sticky-cta { display: none !important; }
}

body.sell-sticky-visible .whatsapp-float {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 640px) {
    .sell-progress-step span.step-label-long { display: none; }
}
