/* Product page — FG product */

.products-figma-main {
    --products-font-ko: 'Pretendard', 'Noto Sans KR', sans-serif;
    --products-font-en: 'Inter', sans-serif;
    background: #f9f7f2;
}

.products-figma-hero {
    max-width: var(--fg-container, 1320px);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 2.75rem;
    text-align: center;
}

.products-figma-title {
    margin: 0 auto 1.5rem;
    font-family: var(--products-font-en);
    font-size: clamp(2.5rem, 5.3vw, 4.375rem);
    font-weight: 900;
    line-height: 0.94;
    color: var(--fg-blue, #0706a0);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.products-figma-headline {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 1.75rem;
    font-family: var(--products-font-ko);
    font-size: clamp(1.5rem, 3.64vw, 3rem);
    font-weight: 500;
    line-height: 1.35;
    color: var(--fg-blue, #0706a0);
    letter-spacing: -0.02em;
    text-align: center;
}

html[lang="en"] .products-figma-headline {
    font-family: var(--products-font-en);
    font-weight: 600;
}

.products-figma-lead {
    width: fit-content;
    max-width: min(100%, 72rem);
    margin: 0 auto;
    font-family: var(--products-font-ko);
    font-size: clamp(1.125rem, 1.65vw, 1.5rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.7;
    letter-spacing: -0.01em;
    text-transform: none;
    text-align: center;
    color: #666666;
}

@media (min-width: 769px) {
    .products-figma-headline,
    .products-figma-lead,
    .products-figma-closing-lead-line {
        white-space: nowrap;
    }

    html[lang="en"] .products-figma-lead {
        white-space: normal;
    }
}

.products-figma-cards {
    max-width: var(--fg-container, 1320px);
    margin: 0 auto;
    padding: 0 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.products-figma-card {
    background: #fff;
    border-radius: 23px;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 7.5rem;
}

.products-figma-card-icon {
    flex: 0 0 5.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.25rem;
    height: 4rem;
}

.products-figma-card-icon img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 4rem;
    object-fit: contain;
}

.products-figma-card-icon--material {
    flex: 0 0 5.75rem;
    width: 5.75rem;
    justify-content: flex-start;
}

.products-figma-card-icon--material img:nth-child(1) {
    max-height: 3.25rem;
}

.products-figma-card-icon--material img:nth-child(2) {
    max-height: 3.35rem;
    margin-left: -0.35rem;
}

.products-figma-card-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.products-figma-card-copy h2 {
    margin: 0 0 0.25rem;
    font-family: var(--products-font-en);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--fg-blue, #0706a0);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.products-figma-card-copy p {
    margin: 0;
    font-family: var(--products-font-ko);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    color: #666666;
    letter-spacing: -0.01em;
}

html[lang="en"] .products-figma-card-copy p {
    font-family: 'Inter', sans-serif;
}

.products-figma-taps {
    max-width: var(--fg-container, 1320px);
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Bottom closing — product_page_bot + message */
.products-figma-closing {
    background: #fff;
    padding: clamp(3rem, 6vw, 5rem) 1.5rem clamp(4rem, 8vw, 6rem);
}

.products-figma-closing-inner {
    max-width: 52rem;
    margin: 0 auto;
    text-align: center;
}

.products-figma-closing-icons {
    display: block;
    width: min(152px, 29%);
    height: auto;
    margin: 0 auto clamp(2rem, 4vw, 3.5rem);
}

.products-figma-closing-lead {
    margin: 0 auto;
    max-width: 52rem;
    font-family: var(--products-font-ko);
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--fg-blue, #0706a0);
    text-align: center;
    letter-spacing: -0.02em;
}

.products-figma-closing-lead-line {
    display: block;
}

.products-figma-closing-lead-gap {
    display: block;
    height: clamp(0.85rem, 2.2vw, 1.35rem);
}

html[lang="en"] .products-figma-closing-lead {
    font-family: var(--products-font-en);
    font-weight: 400;
    white-space: normal;
}

html[lang="en"] .products-figma-closing-lead-line {
    white-space: normal;
}

.products-figma-tap {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 23px;
    overflow: hidden;
    line-height: 0;
    background: none;
    cursor: pointer;
    text-align: left;
}

.products-figma-tap-media {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
}

.products-figma-tap-img {
    width: 100%;
    height: auto;
    display: block;
}

.products-figma-tap-label {
    position: absolute;
    top: clamp(1.25rem, 3.2vw, 2.75rem);
    left: clamp(1.25rem, 3.2vw, 2.75rem);
    z-index: 2;
    max-width: calc(100% - 2.5rem);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(1.125rem, 2.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--fg-blue, #0706a0);
    pointer-events: none;
}

html[lang="en"] .products-figma-tap-label {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.625rem);
}

.products-figma-tap-img--hover {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: bottom center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.products-figma-tap:hover .products-figma-tap-img--hover,
.products-figma-tap:focus-visible .products-figma-tap-img--hover {
    opacity: 1;
}

@media (hover: none) {
    .products-figma-tap-img--hover {
        opacity: 1;
    }
}

.products-figma-tap:focus-visible {
    outline: 2px solid var(--fg-blue, #0706a0);
    outline-offset: 3px;
}

/* Category popup — 1320×833 */
.products-figma-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 25px 1.5rem 1.5rem;
}

.products-figma-modal[hidden] {
    display: none;
}

.products-figma-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.products-figma-modal-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(1320px, 100%);
    height: min(833px, calc(100vh - 50px));
    background: #fff;
    border-radius: 23px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.products-figma-modal-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.products-figma-modal-title {
    margin: 0;
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--fg-blue, #0706a0);
}

.products-figma-modal-close {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.15rem 0.5rem;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    color: var(--fg-blue, #0706a0);
    cursor: pointer;
}

.products-figma-modal-close:hover {
    opacity: 0.75;
}

.products-figma-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    background: var(--fg-gray-bg, #f2f2f2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.products-figma-modal-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.products-figma-modal-content[hidden] {
    display: none;
}

.products-modal-block {
    background: var(--fg-gray-bg, #f2f2f2);
}

.products-modal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
}

.products-modal-copy {
    background: var(--fg-gray-bg, #f2f2f2);
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.75rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.products-modal-copy-title {
    margin: 0 0 clamp(1rem, 1.8vw, 1.35rem);
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.28;
    color: var(--fg-blue, #0706a0);
}

.products-modal-copy p {
    margin: 0;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--fg-blue, #0706a0);
}

.products-modal-copy p + p {
    margin-top: clamp(1rem, 1.8vw, 1.5rem);
}

.products-modal-copy p:last-child {
    margin-bottom: 0;
}

.products-modal-visual {
    width: 100%;
    min-height: 100%;
    background: #fff;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    line-height: 0;
    overflow: hidden;
}

.products-modal-visual img {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    background: #fff;
}

.products-modal-visual--blank::before {
    content: '';
    display: block;
    width: 100%;
    max-width: 660px;
    aspect-ratio: 660 / 563;
    background: #fff;
}

@media (max-width: 768px) {
    .products-modal-row,
    .products-modal-row--reverse {
        grid-template-columns: 1fr;
    }
}

body.products-modal-open {
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}

body.products-modal-open .site-header {
    visibility: hidden;
}

/* Mobile — keep PC layout shape; scale typography and spacing */
@media (max-width: 768px) {
    .products-figma-hero {
        padding: 2rem 1rem 1.5rem;
    }

    .products-figma-title {
        font-size: clamp(2rem, 9vw, 2.75rem);
        margin-bottom: 1rem;
    }

    .products-figma-headline {
        font-size: clamp(1.125rem, 4.8vw, 1.75rem);
        margin-bottom: 1.25rem;
        white-space: normal;
    }

    .products-figma-lead {
        font-size: clamp(0.75rem, 3vw, 0.9375rem);
        line-height: 1.45;
        max-width: 100%;
        white-space: normal;
    }

    .products-figma-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.5rem;
        padding: 0 1rem 1.5rem;
    }

    .products-figma-card {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0.65rem 0.45rem;
        min-height: 0;
        gap: 0.35rem;
        border-radius: 12px;
    }

    .products-figma-card-icon,
    .products-figma-card-icon--material {
        width: 100%;
        height: auto;
        min-height: 0;
        justify-content: center;
    }

    .products-figma-card-icon img {
        max-height: 1.75rem;
    }

    .products-figma-card-icon--material img:nth-child(1),
    .products-figma-card-icon--material img:nth-child(2) {
        max-height: 1.5rem;
    }

    .products-figma-card-copy h2 {
        font-size: clamp(0.625rem, 2.6vw, 0.8125rem);
        margin-bottom: 0.15rem;
    }

    .products-figma-card-copy p {
        font-size: clamp(0.5625rem, 2.1vw, 0.6875rem);
        line-height: 1.2;
    }

    .products-figma-taps {
        padding: 0 1rem 1.5rem;
        gap: 0.75rem;
    }

    .products-figma-tap {
        border-radius: 14px;
    }

    .products-figma-tap-label {
        top: 8%;
        left: 4.5%;
        font-size: clamp(0.625rem, 3vw, 1rem);
        max-width: 58%;
    }

    html[lang="en"] .products-figma-tap-label {
        font-size: clamp(0.5625rem, 2.8vw, 0.9375rem);
    }

    .products-figma-closing {
        padding: 2.5rem 1rem 3rem;
    }

    .products-figma-closing-icons {
        width: min(152px, 36%);
        margin-bottom: 1.5rem;
    }

    .products-figma-headline,
    .products-figma-lead,
    .products-figma-closing-lead-line {
        white-space: normal;
    }

    .products-figma-closing-lead {
        font-size: clamp(0.75rem, 3.2vw, 1.25rem);
        line-height: 1.35;
    }

    .products-figma-modal {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
        flex-direction: column;
        height: 100%;
        height: 100svh;
        height: 100dvh;
        max-height: 100%;
        max-height: 100svh;
        max-height: 100dvh;
        overflow: hidden;
        box-sizing: border-box;
    }

    .products-figma-modal-panel {
        --products-modal-header-h: calc(3.25rem + env(safe-area-inset-top, 0px));
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
        box-sizing: border-box;
        padding: 0;
        overflow: hidden;
    }

    .products-figma-modal-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 310;
        flex-shrink: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.5rem;
        min-height: 3.25rem;
        padding:
            max(0.75rem, env(safe-area-inset-top, 0px))
            max(0.75rem, env(safe-area-inset-right, 0px))
            0.75rem
            max(0.75rem, env(safe-area-inset-left, 0px));
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
        box-sizing: border-box;
    }

    .products-figma-modal-title {
        font-size: clamp(0.8125rem, 3.8vw, 1.0625rem);
        line-height: 1.3;
        word-break: keep-all;
        overflow-wrap: anywhere;
        min-width: 0;
        padding-right: 0.25rem;
    }

    .products-figma-modal-close {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        margin: 0;
        padding: 0;
        font-size: 1.75rem;
        line-height: 1;
    }

    .products-figma-modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        padding-top: var(--products-modal-header-h);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .products-figma-modal-content {
        max-height: 100%;
    }

    .products-modal-copy {
        padding: 1rem 0.85rem;
    }

    .products-modal-copy-title {
        font-size: clamp(1.0625rem, 4.5vw, 1.375rem);
        margin-bottom: 0.55rem;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .products-modal-copy p {
        font-size: clamp(0.75rem, 3.2vw, 0.875rem);
        margin-bottom: 0.45rem;
        line-height: 1.4;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .products-modal-visual {
        min-height: 0;
        max-height: none;
        aspect-ratio: 4 / 3;
    }

    .products-modal-visual img {
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        object-fit: cover;
    }
}
