* {
    box-sizing: border-box;
}

body.msgm-shop-list-page {
    margin: 0;
    background: #f6f7f9;
    color: #17191f;
    font-family: 'Noto Sans KR', sans-serif;
}

.msgm-shop-list {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 96px;
}

.shop-list-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px 38px;
    border: 1px solid #e9ecf1;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(108, 92, 231, .12),
            transparent 36%
        ),
        #fff;
    box-shadow: 0 15px 38px rgba(15, 23, 42, .05);
}

.shop-list-eyebrow {
    color: #6c5ce7;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.shop-list-hero h1 {
    margin: 8px 0 8px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
    letter-spacing: -.055em;
}

.shop-list-hero p {
    margin: 0;
    color: #727985;
    font-size: 13px;
    line-height: 1.7;
}

.shop-list-hero__count {
    display: grid;
    flex: 0 0 auto;
    width: 128px;
    height: 128px;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    background: #6c5ce7;
    color: #fff;
    box-shadow: 0 15px 32px rgba(108, 92, 231, .23);
}

.shop-list-hero__count strong,
.shop-list-hero__count span {
    display: block;
}

.shop-list-hero__count strong {
    font-size: 31px;
    line-height: 1;
}

.shop-list-hero__count span {
    margin-top: 6px;
    font-size: 11px;
    opacity: .82;
}

.shop-list-filter {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #e8ebf0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.shop-list-filter form {
    display: grid;
    grid-template-columns:
        minmax(230px, 1.5fr)
        repeat(3, minmax(130px, .7fr))
        auto
        auto;
    align-items: end;
    gap: 10px;
}

.shop-list-filter label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.shop-list-filter label > span {
    color: #858c96;
    font-size: 10px;
    font-weight: 800;
}

.shop-list-filter input,
.shop-list-filter select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #fff;
    color: #252a31;
    font: inherit;
    font-size: 13px;
    outline: 0;
}

.shop-list-search {
    position: relative;
}

.shop-list-search > i {
    position: absolute;
    bottom: 14px;
    left: 14px;
    color: #9aa1ab;
}

.shop-list-search input {
    padding-left: 39px;
}

.shop-list-filter button,
.shop-list-filter form > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    border: 1px solid #6c5ce7;
    border-radius: 12px;
    background: #6c5ce7;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.shop-list-filter form > a {
    border-color: #dfe3e8;
    background: #fff;
    color: #616975;
}

.shop-list-result-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 34px 0 17px;
}

.shop-list-result-head h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -.04em;
}

.shop-list-result-head p {
    margin: 6px 0 0;
    color: #7b828d;
    font-size: 12px;
}

.shop-list-result-head strong {
    color: #6c5ce7;
}

.shop-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.shop-list-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e7eaf0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 25px rgba(15, 23, 42, .045);
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.shop-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 31px rgba(15, 23, 42, .08);
}

.shop-list-card__image {
    position: relative;
    display: block;
    min-height: 190px;
    overflow: hidden;
    background: #eef0f3;
}

.shop-list-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.shop-list-card:hover .shop-list-card__image img {
    transform: scale(1.025);
}

.shop-list-card__new {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #ff4d58;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 5px 14px rgba(255, 77, 88, .24);
}

.shop-list-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 18px;
}

.shop-list-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #8a919b;
    font-size: 10px;
}

.shop-list-card__meta span {
    min-width: 0;
    overflow: hidden;
    color: #6c5ce7;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-list-card__meta time {
    flex: 0 0 auto;
}

.shop-list-card h3 {
    margin: 10px 0 7px;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -.035em;
}

.shop-list-card h3 a {
    color: #1b1e24;
    text-decoration: none;
}

.shop-list-card__excerpt {
    display: -webkit-box;
    min-height: 42px;
    margin: 0;
    overflow: hidden;
    color: #717985;
    font-size: 12px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.shop-list-card__tags {
    margin: 8px 0 0;
    overflow: hidden;
    color: #6c5ce7;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-list-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f2f5;
}

.shop-list-card__bottom strong {
    color: #e23b45;
    font-size: 17px;
    font-weight: 900;
    white-space: nowrap;
}

.shop-list-card__bottom a {
    color: #4d5561;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.shop-list-empty {
    display: grid;
    min-height: 300px;
    place-items: center;
    align-content: center;
    padding: 40px 20px;
    border: 1px solid #e7eaf0;
    border-radius: 20px;
    background: #fff;
    color: #868e99;
    text-align: center;
}

.shop-list-empty i {
    margin-bottom: 13px;
    color: #c5cad1;
    font-size: 42px;
}

.shop-list-empty strong {
    color: #303640;
    font-size: 20px;
}

.shop-list-empty p {
    margin: 8px 0 0;
    font-size: 12px;
}

.shop-list-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 34px;
}

.shop-list-pagination a,
.shop-list-pagination span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #e1e5ea;
    border-radius: 11px;
    background: #fff;
    color: #616975;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.shop-list-pagination span {
    border-color: #6c5ce7;
    background: #6c5ce7;
    color: #fff;
}

@media (max-width: 1040px) {
    .shop-list-filter form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-list-search {
        grid-column: span 2;
    }

    .shop-list-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 680px) {
    .msgm-shop-list {
        width: calc(100% - 24px);
        padding: 24px 0 84px;
    }

    .shop-list-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 27px 19px;
        border-radius: 18px;
    }

    .shop-list-hero__count {
        width: 100%;
        height: auto;
        place-items: start;
        padding: 13px 15px;
        border-radius: 13px;
    }

    .shop-list-hero__count strong {
        font-size: 24px;
    }

    .shop-list-filter {
        padding: 13px;
    }

    .shop-list-filter form {
        grid-template-columns: 1fr;
    }

    .shop-list-search {
        grid-column: auto;
    }

    .shop-list-card {
        grid-template-columns: 118px minmax(0, 1fr);
        border-radius: 15px;
    }

    .shop-list-card__image {
        min-height: 160px;
    }

    .shop-list-card__body {
        padding: 14px;
    }

    .shop-list-card h3 {
        margin-top: 8px;
        font-size: 16px;
    }

    .shop-list-card__excerpt {
        min-height: 38px;
        font-size: 11px;
    }

    .shop-list-card__meta time {
        display: none;
    }

    .shop-list-card__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        padding-top: 10px;
    }

    .shop-list-card__bottom strong {
        font-size: 15px;
    }
}

@media (max-width: 390px) {
    .shop-list-card {
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .shop-list-card__tags {
        display: none;
    }
}
