.shop-detail-page {
    --shop-nav-height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(76px + var(--shop-nav-height));
}

.shop-detail-page .shop-shell {
    max-width: 1120px;
    padding: 20px 16px;
}

.shop-detail-page .detail-top {
    position: static;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 32px;
    padding: 0;
}

.shop-detail-page .global-back-link {
    color: #374151;
    gap: 4px;
    min-height: 32px;
    padding: 4px 8px;
    font-size: 13px;
    line-height: 20px;
    white-space: nowrap;
}

.shop-detail-page .global-back-link span {
    color: inherit;
    font-size: 18px;
}

.shop-detail-page .shop-detail-layout,
.shop-detail-page .shop-detail-main,
.shop-detail-page .shop-detail-sidebar {
    min-width: 0;
}

.shop-detail-page .shop-detail-card {
    padding: 16px;
}

.shop-detail-page .shop-description h2 {
    color: #10243d;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
    margin: 28px 0 12px;
    padding-top: 10px;
    border-top: 1px solid #e3e8ef;
}

.shop-detail-page .shop-description h2::first-letter {
    color: #aa7b18;
}

.shop-detail-page .shop-description img,
.shop-detail-page .shop-global-image-card img {
    max-width: 100%;
    height: auto;
    cursor: zoom-in;
}

.shop-detail-page .shop-inquiry-card {
    scroll-margin-top: calc(56px + env(safe-area-inset-top, 0px));
    scroll-margin-bottom: calc(76px + var(--shop-nav-height));
}

.shop-detail-page .shop-inquiry-form {
    gap: 10px;
}

.shop-detail-page .shop-inquiry-form label {
    gap: 4px;
    min-width: 0;
}

.shop-detail-page .shop-inquiry-form input,
.shop-detail-page .shop-inquiry-form textarea {
    font-size: 16px;
    min-height: 42px;
    padding: 8px 10px;
}

.shop-detail-page .shop-inquiry-form label:has([name="contact"]) {
    grid-column: 1 / -1;
}

.shop-detail-page .shop-inquiry-privacy {
    font-size: 13px;
    line-height: 1.6;
    margin: 8px 0 12px;
}

.shop-detail-page .shop-inquiry-actions .button {
    width: 100%;
    min-height: 44px;
}

.shop-detail-page .shop-contact-bar {
    position: fixed;
    bottom: var(--shop-nav-height);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 720px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 0;
    border-width: 1px 0 0;
    box-shadow: 0 -4px 18px rgb(16 36 61 / 6%);
    z-index: 40;
}

.shop-detail-page .shop-contact-bar .button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 9px 4px;
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    white-space: nowrap;
}

.shop-detail-page .shop-contact-bar.is-hidden,
.shop-detail-page.lightbox-open .shop-contact-bar {
    visibility: hidden;
    pointer-events: none;
}

.shop-detail-page .home-bottom-nav {
    height: calc(60px + env(safe-area-inset-bottom, 0px));
}

.shop-detail-page .home-contact-toast {
    bottom: calc(82px + var(--shop-nav-height));
    z-index: 110;
}

.shop-detail-page .image-lightbox img {
    cursor: zoom-in;
}

.shop-detail-page .image-lightbox.is-zoomed {
    display: block;
    overflow: auto;
    padding: 70px 16px;
    touch-action: pan-x pan-y pinch-zoom;
}

.shop-detail-page .image-lightbox.is-zoomed img {
    max-width: none;
    max-height: none;
    width: max(100%, 900px);
    height: auto;
    cursor: zoom-out;
}

.shop-detail-page .image-lightbox-close {
    z-index: 2003;
}

@media (min-width: 960px) {
    .shop-detail-page {
        padding-bottom: calc(16px + var(--shop-nav-height));
    }

    .shop-detail-page .shop-detail-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
        gap: 24px;
    }

    .shop-detail-page .shop-detail-sidebar {
        position: sticky;
        top: 20px;
    }

    .shop-detail-page .shop-contact-bar {
        position: static;
        transform: none;
        width: 100%;
        padding: 12px;
        flex-wrap: wrap;
        border: 1px solid #e5edf7;
        border-radius: 8px;
        box-shadow: none;
    }

    .shop-detail-page .shop-contact-bar .button:last-child {
        flex-basis: 100%;
    }

}

@media (max-width: 520px) {
    .shop-detail-page .shop-shell {
        padding: 12px;
    }

    .shop-detail-page .shop-detail-card {
        padding: 12px;
    }

    .shop-detail-page .shop-inquiry-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-detail-page .shop-detail-title-row {
        flex-wrap: wrap;
    }
}
