﻿.store-page {
    padding: 28px 0 42px;
    background: #f6f8fb;
    min-height: calc(100vh - 96px);
}

.store-container--small {
    max-width: 980px;
}

.store-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.store-page-label {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 6px;
}

.store-page-head h1 {
    margin: 0;
    color: #0f172a;
    font-size: 32px;
    line-height: 1.2;
}

.store-link {
    color: #2563eb;
    font-weight: 700;
}

.store-search {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 18px;
    background: #ffffff;
}

.store-search__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.store-search__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.store-search__grid--three,
.store-search__grid--four {
    grid-template-columns: repeat(2, 1fr);
}

.store-search__grid--four {
    grid-template-columns: 1fr 1fr 1fr 180px;
}

.store-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.store-field--full {
    grid-column: 1 / -1;
}

.store-field--button {
    justify-content: flex-end;
}

.store-field label {
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.store-field input,
.store-field select,
.store-field textarea,
.store-point input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    outline: none;
}

.store-field input,
.store-field select,
.store-point input {
    height: 44px;
    padding: 0 12px;
}

.store-field textarea {
    min-height: 110px;
    padding: 12px;
    resize: vertical;
}

.store-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
    background: #ffffff;
}

    .store-card h2 {
        margin: 0 0 16px;
        font-size: 22px;
        color: #0f172a;
    }

    .store-card h3 {
        margin: 18px 0 10px;
        font-size: 16px;
        color: #334155;
    }

.store-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.store-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

    .store-checks label {
        min-height: 42px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 0 14px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #f8fafc;
        color: #334155;
        font-weight: 700;
    }

.store-points {
    display: grid;
    gap: 10px;
}

.store-point {
    display: flex;
    gap: 10px;
}

    .store-point > button {
        width: 44px;
        height: 44px;
        border: 1px solid #fecaca;
        border-radius: 10px;
        background: #fff1f2;
        color: #e11d48;
        cursor: pointer;
    }

.store-small-btn {
    height: 38px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 0 14px;
    margin-top: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
    cursor: pointer;
}

.store-form-bottom {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}
.store-container--small {
    max-width: 980px;
}

.store-page {
    padding: 24px 0 36px;
}

.store-page-head {
    margin-bottom: 16px;
}

.store-page-label {
    font-size: 13px;
    margin-bottom: 4px;
}

.store-page-head h1 {
    font-size: 30px;
    margin: 0;
}

.store-edit-form {
    display: grid;
    gap: 14px;
}

.store-card {
    padding: 18px 20px;
    border-radius: 14px;
}

    .store-card h2 {
        font-size: 22px;
        margin: 0 0 14px;
    }

    .store-card h3 {
        font-size: 15px;
        margin: 12px 0 8px;
    }

.store-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.store-form-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-form-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-field--full {
    grid-column: 1 / -1;
}

.store-field label {
    font-size: 13px;
    margin-bottom: 5px;
}

.store-field input,
.store-field select,
.store-field textarea,
.store-point input {
    height: 42px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 14px;
}

.store-field textarea {
    min-height: 78px;
    resize: vertical;
}

.store-points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.store-points {
    display: grid;
    gap: 8px;
}

.store-small-btn {
    margin-top: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
}

.store-checks {
    margin-top: 12px;
    gap: 10px;
}

    .store-checks label {
        padding: 8px 10px;
        border-radius: 10px;
    }

.store-form-bottom {
    margin-top: 2px;
}

@media (max-width: 800px) {
    .store-form-grid,
    .store-form-grid--3,
    .store-form-grid--4,
    .store-points-grid {
        grid-template-columns: 1fr;
    }
}
.store-photo-hidden,
.store-photo-add input {
    display: none;
}

.store-photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.store-photo-grid--new {
    margin-top: 8px;
}

.store-photo-add {
    width: 104px;
    height: 82px;
    border: 2px dashed #bfdbfe;
    border-radius: 14px;
    background: #f8fbff;
    cursor: pointer;
    display: block;
    overflow: hidden;
    transition: 0.2s;
    flex: 0 0 auto;
}

    .store-photo-add:hover {
        border-color: #2563eb;
        background: #eff6ff;
    }

.store-photo-add--main {
    width: 180px;
    height: 120px;
    max-width: 100%;
}

.store-photo-add__preview {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .store-photo-add__preview span {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #2563eb;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        line-height: 1;
        font-weight: 400;
    }

    .store-photo-add__preview img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
        display: block;
    }

.store-photo-card {
    position: relative;
    width: 104px;
    height: 82px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    flex: 0 0 auto;
}

    .store-photo-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.store-photo-card__delete {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    background: rgba(225, 29, 72, 0.92);
    color: #ffffff;
    font-size: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .store-photo-card__delete:after {
        content: "×";
        font-size: 18px;
        line-height: 1;
        font-weight: 700;
    }

    .store-photo-card__delete input {
        display: none;
    }

    .store-photo-card__delete:has(input:checked) {
        background: #0f172a;
    }

@media (max-width: 800px) {
    .store-photo-add--main {
        width: 140px;
        height: 96px;
    }

    .store-photo-add,
    .store-photo-card {
        width: 82px;
        height: 66px;
        border-radius: 12px;
    }

    .store-photo-add__preview span {
        width: 30px;
        height: 30px;
        font-size: 22px;
    }
}

.store-photo-grid--inline {
    display: contents;
}

.store-result-page {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.store-result-card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 34px 24px;
    text-align: center;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.store-result-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .store-result-icon span {
        font-size: 42px;
        line-height: 1;
        font-weight: 800;
    }

.store-result-icon--success {
    background: #22c55e;
}

.store-result-icon--moderation {
    background: #f59e0b;
}

.store-result-card h1 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 26px;
    font-weight: 900;
}

.store-result-card p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
}

.store-result-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .store-result-page {
        align-items: flex-start;
        padding-top: 22px;
    }

    .store-result-card {
        padding: 28px 18px;
        border-radius: 20px;
    }

        .store-result-card h1 {
            font-size: 22px;
        }
}

.store-point .store-city-suggest {
    flex: 1;
    min-width: 0;
    position: relative;
}

.store-point .store-city-suggest__input--inline {
    width: 100%;
    height: 44px;
    border: 1px solid #d8dee9;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    background: #ffffff;
    color: #0f172a;
    box-sizing: border-box;
}

    .store-point .store-city-suggest__input--inline:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }

.store-city-suggest__list {
    display: none;
    position: absolute;
    z-index: 100;
    top: 52px;
    left: 0;
    right: 0;

    max-width: 420px;   /* 👈 ограничили ширину */
    width: 100%;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);

    overflow: hidden;
    max-height: 260px;
    overflow-y: auto;
}

.store-point .store-city-suggest__list--show {
    display: block;
}

.store-point .store-city-suggest__list .store-city-suggest__item {
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 0;
    padding: 6px 12px;
    margin: 0;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    display: block;
    color: #0f172a;
}

    .store-point .store-city-suggest__list .store-city-suggest__item:hover {
        background: #f1f5f9;
    }

.store-point .store-city-suggest__title {
    display: block;
    color: #000000;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.store-point .store-city-suggest__subtitle {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
}
