/* ========================================
   SELL PAGE
======================================== */

.sell-page {
    max-width: 1560px;
    margin: 0 auto;
    padding: 30px;
}

/* ========================================
   BREADCRUMBS
======================================== */

.sell-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: #97a3b6;
}

.sell-breadcrumbs a {
    color: #8b95a5;
    transition: .25s;
}

.sell-breadcrumbs a:hover {
    color: #e77b2c;
}

/* ========================================
   PAGE HEADER
======================================== */

.sell-header {
    margin-bottom: 28px;
}

.sell-header__title {
    margin-bottom: 12px;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    color: #202938;
}

.sell-header__text {
    font-size: 22px;
    color: #e77b2c;
}

/* ========================================
   SECTION
======================================== */

.sell-section {
    margin-bottom: 40px;
    padding: 36px;
    background: #fff;
    border: 1px solid #e77b2c;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .05);
}

.sell-section__title {
    margin-bottom: 32px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #202938;
}

.sell-section__subtitle {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.6;
    color: #8b95a5;
}

/* ========================================
   ROWS
======================================== */


.sell-form__row,
.sell-product-row,
.sell-price-row {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.sell-form__row {
    grid-template-columns: 35% 1fr;
}

.sell-product-row {
    grid-template-columns: 2fr 1fr;
}

.sell-car-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.sell-price-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: end;
}

/* ========================================
   FIELD
======================================== */

.sell-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sell-field label {
    font-size: 16px;
    font-weight: 600;
    color: #202938;
    line-height: 1.3;
}

.sell-field input,
.sell-field select {
    width: 100%;
    height: 54px;

    padding: 0 18px;

    border: 1px solid #d9dee7;
    border-radius: 14px;

    background: #fff;

    font-size: 16px;
    color: #202938;

    transition:
        border-color .25s,
        box-shadow .25s,
        background .25s;
}

.sell-field input::placeholder {
    color: #9aa3b2;
}

.sell-field input:hover,
.sell-field select:hover {
    border-color: #c8d1dd;
}

.sell-field input:focus,
.sell-field select:focus {
    outline: none;
    border-color: #F97316;
    box-shadow: 0 0 0 4px rgba(249,115,22,.12);
}

.optional {
    margin-left: 4px;
    font-size: 14px;
    font-weight: 400;
    color: #97a3b6;
}

/* ========================================
   PHOTO
======================================== */

.photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 2px dashed #d9e0ea;
    border-radius: 18px;
    background: #ffffff;
     transition:
        border-color .25s,
        background .25s,
        transform .25s;
}

.photo-upload:hover {
    border-color: var(--color-accent);
    background: #fffaf5;
}
.photo-upload.dragover {
    border-color: var(--color-accent);
    background: #fff4eb;
    transform: scale(1.01);
}

.photo-upload__icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.photo-upload h3 {
    margin-bottom: 10px;
    font-size: 28px;
    color: #202938;
}

.photo-upload p {
    margin-bottom: 24px;
    color: #8b95a5;
}

.photo-upload__button {
    min-width: 260px;
    height: 56px;
    border-radius: 12px;
    background: #F97316;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    transition: .25s;
}

.photo-upload__button:hover {
    border-color:#e77b2c;
    background:#fffdfb;
}

.photo-upload span {
    margin-top: 20px;
    color: #8b95a5;
    font-size: 15px;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 992px) {

    .sell-form__row,
    .sell-product-row,
    .sell-car-grid,
    .sell-price-row {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 768px) {

    .sell-page {
        padding: 20px;
    }

    .sell-section {
        padding: 24px;
    }

    .sell-header__title {
        font-size: 34px;
    }

}
/* ========================================
   PRICE
======================================== */

.sell-price-input {
    position: relative;
    
}

.sell-price-input input {
    padding-right: 58px;
    height:54px;
}

.currency {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);

    color: #8b95a5;
    font-size: 15px;
    font-weight: 500;

    pointer-events: none;
    user-select: none;
}
.sell-price-row {
    display: flex;
    align-items: flex-end;
    gap: 32px;
}
.sell-price {
    width: 320px;
    flex-shrink: 0;
}

.sell-condition {
    display: inline-flex;
    width: fit-content;
    flex-shrink: 0;

    padding: 4px;

    background: #f3f5f8;

    border-radius: 14px;
}

/* ========================================
   CONDITION
======================================== */

.sell-condition {
    display: inline-flex;
    width: fit-content;

    padding: 4px;

    background: #f3f5f8;

    border-radius: 14px;
}

.condition-btn {

    min-width: 82px;
    height: 42px;

    border: none;

    border-radius: 10px;

    background: transparent;

    color: #202938;

    transition: .25s;
}


.condition-btn:hover {
    border-color: #F97316;
    color: #F97316;
}

.condition-btn.active {

    background: #F97316;

    color: white;

    box-shadow: 0 4px 10px rgba(249,115,22,.25);
}
/* ========================================
   PHOTO GRID
======================================== */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.photo-slot {
    position: relative;

    aspect-ratio: 1 / 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 14px;

    background: #fafbfc;

    border: 2px dashed #d9dee7;
    border-radius: 18px;

    cursor: pointer;

    transition:
        border-color .25s,
        background .25s,
        transform .25s;
}

.photo-slot:hover {
    border-color: #F97316;
    background: #fff8f2;
    transform: translateY(-2px);
}

.photo-slot--add {
    border-color: #F97316;
    background: #fff8f2;
}

.photo-slot__icon {
    font-size: 54px;
    line-height: 1;
    color: #F97316;
    font-weight: 300;
}

.photo-slot__camera {
    font-size: 44px;
    opacity: .45;
}

.photo-slot__text {
    font-size: 17px;
    font-weight: 600;
    color: #202938;
    text-align: center;
}

.photo-counter {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 16px;
    color: #8b95a5;
}

.photo-counter::before {
    content: "🖼";
    font-size: 20px;
}

/* ========================================
   PHOTO PREVIEW
======================================== */

.photo-slot img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 16px;
}

.photo-badge {
    position: absolute;

    top: 10px;
    left: 10px;

    padding: 6px 10px;

    background: #F97316;

    color: #fff;

    font-size: 13px;
    font-weight: 600;

    border-radius: 8px;
}

.photo-remove {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(32,41,56,.75);

    color: #fff;

    border-radius: 50%;

    cursor: pointer;

    opacity: 0;
    transition: .25s;
}

.photo-slot:hover .photo-remove {
    opacity: 1;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1200px) {

    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 768px) {

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}
/* ========================================
   DESCRIPTION
======================================== */

.sell-field textarea {
    width: 100%;
    min-height: 240px;

    padding: 18px;

    resize: vertical;

    border: 1px solid #d9dee7;
    border-radius: 14px;

    background: #fff;

    font-size: 16px;
    line-height: 1.7;
    color: #202938;

    transition:
        border-color .25s,
        box-shadow .25s;
}

.sell-field textarea::placeholder {
    color: #9aa3b2;
}

.sell-field textarea:focus {
    outline: none;
    border-color: #F97316;
    box-shadow: 0 0 0 4px rgba(249,115,22,.12);
}

.description-counter {
    margin-top: 12px;

    text-align: right;

    color: #8b95a5;

    font-size: 14px;
}

.description-counter span {
    color: #F97316;
    font-weight: 600;
}
/* ========================================
   SELLER
======================================== */

.seller-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 24px;

    margin-bottom: 24px;

}

.seller-checkbox {

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 16px;

    font-weight: 500;

    color: #202938;

}

.seller-checkbox input {

    width: 20px;
    height: 20px;

    accent-color: #F97316;

    cursor: pointer;

}

.seller-checkbox span {

    cursor: pointer;

}
/* ========================================
   FINISH
======================================== */

.sell-finish {

    text-align: center;

}

.publish-btn {
    min-width: 360px;
    height: 62px;

    margin: 16px auto 16px;

    border: none;
    border-radius: 14px;

    background: #F97316;

    color: #fff;

    font-size: 20px;
    font-weight: 700;

    cursor: pointer;

    transition: .25s;
}

.publish-btn:hover {

    background: #ea6b0d;

    transform: translateY(-2px);

    box-shadow: 0 10px 25px rgba(249,115,22,.25);

}

.publish-note {

    max-width: 520px;

    margin: auto;

    color: #8b95a5;

    font-size: 15px;

    line-height: 1.6;

}