/* store-detail.css - 매장 상세 페이지 전용 스타일 */

.store-detail-main {
    width: 100%;
    min-height: 100vh;
}

.store-info-change-button {
    gap: 5px;
    display: flex;
    color: #1D1D1D;
    font-size: 16px;
}

.store-detail-thumb {
    width: 100vw;
    aspect-ratio: 16 / 9;
    max-height: 560px;
    min-height: 360px;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.store-footer-div {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #7A7A7A;
    gap: 5px;
}

.store-footer-div img {
    width: auto;
    height: 21px;
}

.store-main-image {
    position: absolute;
    inset: 0;
    width: 100%;
    object-fit: cover;
}

.store-main-image[src*="img_event_01.png"] {
    opacity: 0.9;
}

/* 매장 정보 섹션 */
.store-info-section {
    padding-top: 75px;
    width: 100%;
}

.store-info-footer {
    padding-bottom: 60px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.store-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.store-category {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.store-delete-button {
    position: relative;
    height: 44px;
    width: 10px;
    color: #777777;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.store-delete-button::before,
.store-delete-button::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: currentColor;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.store-delete-button::before {
    transform: rotate(45deg);
}

.store-delete-button::after {
    transform: rotate(-45deg);
}

.swal-confirm-delete {
    background-color: #FF8000 !important;
    border-color: #FF8000 !important;
    color: #fff !important;
}

.swal-confirm-delete:hover,
.swal-confirm-delete:focus {
    background-color: #e67300 !important;
    border-color: #e67300 !important;
    color: #fff !important;
}

.store-delete-button:hover{
    color: #e67300;
    text-decoration: none;
    transform: scale(1.05);
}

.store-delete-button span {
    line-height: 1;
    display: inline-block;
}

.store-name {
    font-size: 54px;
    font-weight: 800;
    color: #1D1D1D;
}

.category-badge {
    background-color: #FF8000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.store-tab-list {
    padding-top: 100px;
    justify-content: space-around;
    width: 100%;
    display: flex;
    border-bottom: 1px solid #E5E9EC;

}

.store-tab-list li {
    padding-bottom: 17px;
    width: 100%;
    text-align: center;
    list-style: none;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.store-tab-list li.active {
  font-weight: 700;
  border-bottom: 3px solid #FF8000;
}

.store-description {
    color: var(--pf-text);
    line-height: 1.6;
}

.store-description p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.store-tags {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    row-gap: 14px;
}

.tag {
    border: 1px solid #DFDFDF;
    color: #7A7A7A;
    padding: 0.30rem 0.5rem;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
}

/* 섹션 제목 */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--pf-text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.mutii-price-item {
    padding-bottom: 10px;
}

/* 메뉴 섹션 */
.menu-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.menu-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.main-menu, .side-menu {
    display: flex;
    flex-direction: column;
}

.main-menu > * + *,
.side-menu > * + * {
    margin-top: 15px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}

.menu-name, .multi-price-name {
    font-weight: 500;
    color: var(--pf-text);
    line-height: 1.4;
}

.menu-price, .multi-price-main, .multi-price-sub > span:last-child {
    font-weight: 500;
    text-align: right;
    min-width: 70px;
    flex-shrink: 0;
}

.menu-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item .menu-title-wrapper {
    flex: 1;
}

.menu-thumb {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ececec;
    background: #fff;
    flex-shrink: 0;
}

.menu-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-image-trigger[data-menu-image] {
    cursor: pointer;
    position: relative;
}

.menu-image-trigger[data-menu-image]:hover {
    color: #FF8000;
}

.menu-image-hover {
    position: fixed;
    width: 190px;
    height: 150px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    background: #ffffff;
    z-index: 1100;
    pointer-events: none;
    opacity: 0;
    left: -9999px;
    top: -9999px;
    transition: opacity 0.15s ease;
}

.menu-image-hover.visible {
    opacity: 1;
}

.menu-image-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.multi-price-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    padding-bottom: 5px;
}

.dotted-line {
    border-bottom: 1px dashed #CECECF;
}

.multi-price-list {
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.multi-price-sub {
    display: flex;
    justify-content: flex-end;
}

/* 갤러리 섹션 */
.gallery-section {
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}

.gallery-swiper .swiper-wrapper {
    align-items: stretch;
}

.gallery-swiper .swiper-slide {
    display: flex;
    align-items: stretch;
    aspect-ratio: 4 / 3;
    height: auto !important;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .store-detail-thumb {
        aspect-ratio: 4 / 3;
        max-height: 360px;
        min-height: 240px;
    }

    .gallery-swiper .swiper-slide {
        aspect-ratio: 1;
        border-radius: 12px;
    }
}

/* 위치 섹션 */
.location-section {
    margin-bottom: 3rem;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 250px;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--pf-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pf-sub);
}

/* 상세 정보 섹션 */
.details-section {
    margin-bottom: 3rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.details-grid-second {
    border-radius: 20px;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: #FFFBF2;
    padding: 25px 30px;
}
.border-li{
    border-right: 1px solid #FF800045;
    border-left: 1px solid #FF800045;
}

.details-grid-second img{

    height: 30px;
    width: auto;

}

.details-grid-second li {
    color:#7A7A7A;
    font-size: 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.details-grid-second a{
    color: #003A6C !important;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.details-grid-second .web-address-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--pf-border);
    flex-direction: column;
}

.detail-item h4 {
    color: #1D1D1D;
    font-size: 18px;
}

.detail-item p {
    color: #7A7A7A;
    font-size: 20px;
}


.swiper-button-prev, .swiper-button-next {
    color: #FFFFFF !important;
}

.detail-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background-color: #FF8000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.location-info {
    display: flex;
    gap: 10px;
}

.location-info li {
    border-radius: 12px;
    border: 1px solid #DFDFDF;
    padding: 10px;
    font-size: 18px;
    color: #7A7A7A;
    display: flex;
    gap: 10px;
}

.location-info li img {
    width: auto;
    height: 27px
}


.detail-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pf-text);
    margin: 0 0 0.5rem 0;
}

.detail-content p {
    color: var(--pf-text);
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.detail-content a {
    color: #FF8000;
    text-decoration: none;
}

.detail-content a:hover {
    text-decoration: underline;
}

/* 하단 뒤로가기 버튼 */
.bottom-back-btn {
    text-align: center;
    margin: 3rem 0 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--pf-border);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background-color: #FF8000;
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background-color var(--transition-fast);
    min-width: 200px;
}

.btn-back:hover {
    background-color: #e67300;
    color: white;
}

/* 기존 반응형 디자인 */
@media (max-width: 768px) {
    .store-detail-thumb {
        height: 250px;
        border-radius: var(--radius);
    }

    .store-name {
        font-size: 1.5rem;
    }

    .store-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .store-category {
        align-items: flex-start;
    }
    .store-action-buttons {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .store-delete-button {
        width: 17px;
        height: 38px;
    }

    .menu-layout {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.125rem;
    }

    .detail-item {
        padding: 1.25rem;
    }

    .detail-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .app-container {
        padding: 0 1rem;
    }

    .store-detail-main {
        padding-top: 1rem;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }

    .tag-list {
        gap: 10px;
        row-gap: 12px;
    }

    .store-category {
        gap: 8px;
    }

    .btn-back {
        min-width: 180px;
        padding: 0.75rem 1.5rem;
    }

    .menu-item,
    .multi-price-header {
        align-items: flex-start;
    }

    .menu-thumb {
        width: 28px;
        height: 28px;
        border-radius: 5px;
    }

    .menu-title-wrapper {
        gap: 6px;
    }
}

/* --- General Responsive Adjustments --- */

/* Tablet and smaller */
@media (max-width: 992px) {
    .menu-layout {
        flex-direction: column;
        gap: 2.5rem;
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-grid-second {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .store-info-section {
        padding: 20px;
    }

    .location-info {
        flex-direction: column;
    }

    /* Overriding existing media query for details-grid */
    .details-grid {
        grid-template-columns: 1fr;
    }

    .details-grid-second {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .details-grid-second li {
        padding: 0.75rem 0;
    }

    .border-li {
        border: none; /* Remove vertical borders */
    }
}

@media (max-width: 640px) {
    .store-name {
        font-size: 2.25rem;
    }

    .store-footer-div,
    .tag,
    .details-grid-second li,
    .location-info li {
        font-size: 16px;
    }

    .store-tab-list li {
        font-size: 16px;
    }

    .section-title {
        font-size: 1.75rem;
    }
}
