/* ===== 프랜차이즈,제휴업체 리스트 공통 카드 ===== */
.store-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
}

.store-card .store-img {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1/0.607;
    background-color: #f8f8f8;
}

.store-card .store-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.store-card .store-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1;
}

.store-card .store-img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    aspect-ratio: 1/1;
    background: #fff url('/common/img/icon-link-arrow-c91e5ba50fa74413392d00baaa428a19.png') no-repeat center;
    background-size: 40px 40px;
    border-radius: 999px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
}

.store-card:hover .store-img::before,
.store-card:hover .store-img::after {
    opacity: 1;
}

.store-card .store-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.store-card .store-name {
    font-size: 19px;
    font-weight: 600;
    color: #111;
    line-height: 1.5;
    letter-spacing: -0.38px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-card .info-row {
    display: flex;
    gap: 6px;
    align-items: center;
    line-height: 1.5;
    font-size: 16px;
}

.store-card .info-label {
    font-weight: 400;
    color: #555;
    letter-spacing: -0.32px;
    white-space: nowrap;
}

.store-card .info-value {
    font-weight: 500;
    color: #333;
    letter-spacing: -0.32px;
}

/* ===== Category Tabs 공통 ===== */
.category-tabs {
    display: flex;
    justify-content: safe center;
    width: fit-content;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid #e0e0e0;
    gap: 40px;
}

.category-tabs .tab {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    padding: 0 30px;
    font-size: 24px;
    font-weight: 600;
    color: #555;
    letter-spacing: -0.48px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    text-decoration: none;
}

.category-tabs .tab.active {
    font-weight: 700;
    color: #00b2b0;
    border-bottom-color: #00b2b0;
}



/* ===== Sub Visual ===== */
.sub-visual-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%), linear-gradient(90deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 64%);
}


/* ===== Franchise Section ===== */
.franchise-section {
    padding: 100px 0 100px;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

/* ===== Filter Bar ===== */
.filter-bar {
    padding: 50px 0 30px;
}

.franchise-select-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.franchise-select-filter::before {
    content: "";
    display: block;
    height: 20px;
    border-left: 1px solid #D9D9D9;
}


/* ===== Franchise Grid ===== */
.franchise-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px 30px;
    margin-bottom: 50px;
}

.franchise-grid .store-card {
    width: calc((100% - 90px)/4);
}

.picked-swiper .swiper-slide {
    width: calc((100% - 90px) / 4);
}

.franchise-empty {
    text-align: center;
    padding: 50px 0;
    width: 100%;
}

@media (max-width: 1023px) {

    /* ===== 프랜차이즈,제휴업체 리스트 공통 카드 ===== */
    .store-card .store-img::after {
        width: 50px;
        background-size: 20px 20px;
    }

    /* category tabs */
    .category-tabs {
        width: calc(100% + 48px);
        margin-left: -24px;
        gap: 0;
    }

    .category-tabs {
        justify-content: flex-start;
    }

    .franchise-select-filter {
        gap: 6px;
        flex-grow: 1;
    }

    .franchise-select-filter::before {
        display: none;
    }

    .drop-menu {
        width: calc((100% - 12px) / 3 * 1.05);
    }

    .franchise-select-filter .drop-menu {
        width: calc((100% - 6px)/2);
    }

    .picked-swiper .swiper-slide {
        width: 225px;
    }

    .filter-bar {
        padding: 40px 0 20px;
    }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {

    /* 프랜차이즈,제휴업체 공통 카드 */
    .store-card {
        gap: 8px;
    }

    .store-card .store-img {
        border-radius: 10px;
    }

    .store-card .store-info {
        gap: 3px;
    }

    .store-card .store-name {
        font-size: 15px;
    }

    .store-card .info-row {
        font-size: 14px;
    }

    /* category tabs */
    .category-tabs .tab {
        height: 50px;
        padding: 0 16px;
        font-size: 16px;
        font-weight: 400;
        border-bottom-width: 2px;
    }

    .sub-visual-overlay {
        /* background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%); */
    }

    .franchise-section {
        padding: 20px 0 50px;
        gap: 60px;
    }

    .category-tabs {
        border-top: 20px solid #F9F9F9;
    }

    .franchise-grid {
        gap: 20px 18px;
        margin-bottom: 40px;
    }

    .franchise-grid .store-card {
        width: calc((100% - 18px)/2);
    }

    .pagination {
        padding: 0;
    }

}