﻿.store-tabs {
    width: 465px;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #d9e3f2;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #ffffff;
}

.store-tabs--simple {
    grid-template-columns: repeat(2, 1fr);
}

.store-tabs--profile {
    grid-template-columns: repeat(4, 1fr);
}

.store-tabs__item {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 15px;
    border: 0;
    border-right: 1px solid #e5ecf6;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.store-tabs__item:last-child {
    border-right: none;
}

.store-tabs__item--active {
    color: var(--store-blue-dark);
    background: var(--store-blue-light);
    font-weight: 700;
}

.store-tabs__count {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    margin-left: 8px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: inherit;
    font-size: 12px;
    font-weight: 900;
}

.store-actions {
    display: flex;
    gap: 12px;
    margin: 18px 0;
}

.store-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 24px;
    background: #ffffff;
    color: #64748b;
    text-align: center;
}

.store-ad-rows {
    display: grid;
    gap: 12px;
}

.store-ad-rows--loading {
    opacity: 0.55;
    pointer-events: none;
}

.store-ad-row {
    display: grid;
    gap: 16px;
    align-items: stretch;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
}

.store-ad-row--with-photo {
    grid-template-columns: 148px minmax(0, 1fr) 360px;
}

.store-ad-row--no-photo {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.store-ad-row:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.store-ad-row__photo {
    display: block;
    color: inherit;
    text-decoration: none;
}

.store-ad-row__img {
    width: 100%;
    height: 96px;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    background: #f1f5f9;
}

.store-ad-row__img-empty {
    width: 100%;
    height: 96px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 900;
}

.store-ad-row__img-empty--cargo {
    background: #eff6ff;
    color: #1d4ed8;
}

.store-ad-row__img-empty--transport {
    background: #eff6ff;
    color: #1d4ed8;
}

.store-ad-row__img-empty--auto {
    background: #e0f2fe;
    color: #0369a1;
}

.store-ad-row__img-empty--equipment {
    background: #ffedd5;
    color: #c2410c;
}

.store-ad-row__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 6px;
}

.store-ad-row__thumbs img {
    width: 100%;
    height: 28px;
    display: block;
    object-fit: cover;
    border-radius: 7px;
    background: #f1f5f9;
}

.store-ad-row__main {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.store-ad-row__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.store-ad-row__text {
    min-width: 0;
}

.store-ad-row__text h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.store-ad-row__text p {
    margin: 5px 0 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.35;
}

.store-ad-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.store-ad-row__meta span,
.store-status {
    border-radius: 999px;
    padding: 6px 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    line-height: 1;
}

.store-status {
    font-weight: 800;
}

.store-status--success {
    background: #dcfce7;
    color: #15803d;
}

.store-status--warning {
    background: #fef3c7;
    color: #b45309;
}

.store-status--danger {
    background: #ffe4e6;
    color: #be123c;
}

.store-status--info {
    background: #dbeafe;
    color: #1d4ed8;
}

.store-status--secondary {
    background: #f1f5f9;
    color: #475569;
}

.store-ad-row__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
}

.store-ad-row__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
}

    .store-ad-row__price b {
        display: block;
        color: #059669;
        font-size: 20px;
        line-height: 1.1;
        font-weight: 900;
    }

    .store-ad-row__price span {
        display: block;
        margin-top: 2px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
    }

.store-ad-row__edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin-top: 10px;
    padding: 0 12px;
    border-radius: 9px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}
.store-ad-row__cancel-form {
    margin: 0;
}

.store-ad-row__cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin-top: 10px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.store-ad-row__more {
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 12px;
    padding: 0 16px;
    border-radius: 9px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

    .store-ad-row__more:hover {
        background: #dbeafe;
    }

.store-badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    border-radius: 999px;
    padding: 0 10px;
    background: var(--store-blue-light);
    color: var(--store-blue-dark);
    font-size: 13px;
    font-weight: 700;
}

.store-badge--cargo {
    background: var(--store-blue-light);
    color: var(--store-blue-dark);
}

.store-badge--transport {
    background: var(--store-blue-light);
    color: var(--store-blue-dark);
}

.store-badge--auto {
    background: #e0f2fe;
    color: #0369a1;
}

.store-badge--equipment {
    background: #ffedd5;
    color: #c2410c;
}

.store-badge--green {
    background: #dcfce7;
    color: #15803d;
}

@media (max-width: 980px) {
    .store-ad-row--with-photo {
        grid-template-columns: 120px 1fr;
    }

    .store-ad-row--no-photo {
        grid-template-columns: 1fr;
    }

    .store-ad-row__price {
        grid-column: 1 / -1;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .store-tabs {
        width: 100%;
    }

    .store-ad-row {
        grid-template-columns: 1fr;
    }

    .store-ad-row__img,
    .store-ad-row__img-empty {
        height: 160px;
    }
}

.store-detail-card {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    background: #ffffff;
}

.store-detail-card__image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
}

.store-detail-card__head h1 {
    margin: 12px 0 6px;
    color: #0f172a;
    font-size: 28px;
}

.store-detail-card__head p {
    margin: 0;
    color: #475569;
}

.store-detail-card__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 24px;
}

    .store-detail-card__grid div {
        border-radius: 14px;
        padding: 14px;
        background: #f8fafc;
    }

    .store-detail-card__grid b {
        display: block;
        margin-bottom: 6px;
        color: #64748b;
        font-size: 13px;
    }

    .store-detail-card__grid span {
        color: #0f172a;
        font-size: 16px;
        font-weight: 700;
    }

.store-detail-card__photos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

    .store-detail-card__photos img {
        width: 100%;
        height: 120px;
        object-fit: cover;
        border-radius: 12px;
    }

.store-detail-card__actions {
    margin-top: 24px;
}
.store-contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.store-contact-modal--open {
    display: block;
}

.store-contact-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.store-contact-modal__box {
    position: relative;
    width: calc(100% - 32px);
    max-width: 520px;
    margin: 80px auto 0;
    border-radius: 20px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.store-contact-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 24px;
    cursor: pointer;
}

.store-contact-modal__head h3 {
    margin: 14px 40px 6px 0;
    color: #0f172a;
    font-size: 22px;
}

.store-contact-modal__head p {
    margin: 0;
    color: #64748b;
}

.store-contact-modal__contacts {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

    .store-contact-modal__contacts a {
        display: block;
        border-radius: 14px;
        padding: 14px;
        background: #f8fafc;
        text-decoration: none;
    }

    .store-contact-modal__contacts b {
        display: block;
        margin-bottom: 5px;
        color: #64748b;
        font-size: 13px;
    }

    .store-contact-modal__contacts span {
        color: #0f172a;
        font-size: 17px;
        font-weight: 800;
    }

.store-contact-modal__loading {
    padding: 30px;
    text-align: center;
    color: #64748b;
}

.store-ad-row__route-clean {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 7px 28px;
    margin-top: 8px;
    margin-bottom: 8px;
    max-width: 820px;
}

.store-ad-row__route-clean-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    line-height: 1.25;
}

.store-ad-row__route-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.store-ad-row__route-text {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.store-ad-row__comment {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 7px;
    margin-top: 6px;
    max-width: 820px;
}

    .store-ad-row__comment span {
        color: #64748b;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
    }

    .store-ad-row__comment p {
        margin: 0;
        color: #334155;
        font-size: 13px;
        line-height: 1.35;
    }

.store-ad-row__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

    .store-ad-row__chips span {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 0 10px;
        border-radius: 999px;
        background: #eff6ff;
        color: #1d4ed8;
        font-size: 12px;
        font-weight: 800;
    }

.store-ad-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

    .store-ad-row__meta span {
        border-radius: 999px;
        padding: 6px 10px;
        background: #f1f5f9;
        color: #475569;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
    }

.store-ad-row__top > span:not(.store-badge):not(.store-status) {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.store-ad-row__price span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

    .store-ad-row__price span:empty {
        display: none;
    }

.store-ad-row__icon-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.store-ad-row__icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fafc;
    color: #1d4ed8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

    .store-ad-row__icon-btn:hover {
        background: #eff6ff;
    }

.store-ad-row__icon-btn--active {
    background: #fef3c7;
    border-color: #fde68a;
    color: #d97706;
}

.store-ad-row__photo-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.store-ad-row__thumbs button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.store-ad-row__rental-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

    .store-ad-row__rental-info div {
        padding: 5px 8px;
        border-radius: 999px;
        background: #f1f5f9;
        color: #475569;
        font-size: 12px;
        font-weight: 700;
    }

.store-ad-row__description {
    margin-top: 8px;
    color: #475569;
    font-size: 14px;
    line-height: 1.4;
}

.store-gallery-open {
    overflow: hidden;
}

.store-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.96);
}

.store-gallery-modal--open {
    display: flex;
}

.store-gallery-modal__body {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .store-gallery-modal__body > img {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        object-fit: contain;
        display: block;
    }

.store-gallery-modal__close {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10002;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.store-gallery-modal__arrow {
    position: fixed;
    top: 50%;
    z-index: 10001;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    font-size: 46px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.store-gallery-modal__arrow--left {
    left: 12px;
}

.store-gallery-modal__arrow--right {
    right: 12px;
}

.store-gallery-modal__thumbs {
    display: none;
}

@media (max-width: 980px) {
    .store-ad-row--with-photo {
        grid-template-columns: 120px 1fr;
    }

    .store-ad-row--no-photo {
        grid-template-columns: 1fr;
    }

    .store-ad-row__route-clean {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .store-ad-row__comment {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .store-ad-row__side {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 10px;
        text-align: left;
    }

    .store-ad-row__price {
        align-items: flex-start;
        text-align: left;
    }

    .store-ad-row__icon-actions {
        margin-top: 0;
    }

    .store-ad-row__buttons {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

        .store-ad-row__buttons .store-ad-row__more,
        .store-ad-row__buttons .store-ad-row__edit,
        .store-ad-row__buttons .store-ad-row__cancel {
            width: auto;
        }
}

@media (max-width: 640px) {
    .store-tabs {
        width: 100%;
    }

    .store-ad-row {
        grid-template-columns: 1fr;
    }

    .store-ad-row__img,
    .store-ad-row__img-empty {
        height: 160px;
    }

    .store-ad-row__route-clean {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .store-ad-row__route-clean-item {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 6px;
    }

    .store-ad-row__route-label {
        font-size: 11px;
    }

    .store-ad-row__route-text {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .store-ad-row__comment {
        grid-template-columns: 1fr;
        gap: 3px;
        padding-top: 8px;
        border-top: 1px solid #eef2f7;
    }

        .store-ad-row__comment span {
            font-size: 11px;
        }

        .store-ad-row__comment p {
            font-size: 13px;
            overflow-wrap: anywhere;
        }

    .store-ad-row__chips span {
        max-width: 100%;
        min-height: 22px;
        padding: 3px 8px;
        font-size: 11px;
        white-space: normal;
    }

    .store-ad-row__meta span {
        max-width: 100%;
        white-space: normal;
        line-height: 1.15;
    }

    .store-gallery-modal__close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 32px;
    }

    .store-gallery-modal__arrow {
        width: 42px;
        height: 42px;
        font-size: 34px;
    }

    .store-gallery-modal__arrow--left {
        left: 6px;
    }

    .store-gallery-modal__arrow--right {
        right: 6px;
    }
}
.store-load-more {
    display: flex;
    justify-content: center;
    margin: 28px 0 36px;
}
.store-ad-row__buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-top: 12px;
}
    .store-ad-row__buttons .store-ad-row__more,
    .store-ad-row__buttons .store-ad-row__edit {
        margin-top: 0;
    }

.store-ad-row__cancel-form {
    margin: 0;
}

.store-ad-row__cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 575px) {
    .store-ad-row__buttons {
        width: 100%;
        justify-content: flex-start;
        align-items: stretch;
        gap: 8px;
        flex-wrap: wrap; /* ключевое */
    }

        .store-ad-row__buttons a,
        .store-ad-row__buttons button {
            flex: 1 1 calc(50% - 4px); /* по 2 в ряд */
            min-width: 0;
            text-align: center;
        }

    .store-ad-row__cancel-form {
        flex: 1 1 calc(50% - 4px);
    }

        .store-ad-row__cancel-form button {
            width: 100%;
        }
}