.psx-bnm-cat {
    --psx-bnm-border: #e8e8ee;
    --psx-bnm-text: #121218;
    --psx-bnm-muted: #686873;
    --psx-bnm-bg: #ffffff;
    color: var(--psx-bnm-text);
}

.psx-bnm-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
    gap: 34px;
    align-items: center;
}

.psx-bnm-product-media {
    background: transparent;
    border-radius: 0;
    padding: 0;
    text-align: center;
}

.psx-bnm-product-image {
    display: block;
    width: 100%;
    max-width: 430px;
    height: auto;
    margin: 0 auto;
}

.psx-bnm-panel {
    background: var(--psx-bnm-bg);
}

.psx-bnm-product-title {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 50px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.psx-bnm-price {
    margin: 0 0 22px;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
}

.psx-bnm-gift-box {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 20px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--psx-bnm-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
}

.psx-bnm-tshirt-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    min-height: 128px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    overflow: hidden;
    cursor: zoom-in;
}

.psx-bnm-tshirt-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.psx-bnm-tshirt-zoom {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    color: #121218;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.psx-bnm-gift-content h4 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
}

.psx-bnm-gift-content p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--psx-bnm-muted);
}

.psx-bnm-size-label {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.psx-bnm-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.psx-bnm-size-option {
    min-width: 56px;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--psx-bnm-border);
    border-radius: 10px;
    background: #fff;
    color: var(--psx-bnm-text);
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
}

.psx-bnm-size-option:hover {
    transform: translateY(-1px);
    border-color: #cfcfd8;
}

.psx-bnm-message {
    display: none;
    margin: 14px 0 0;
    font-size: 14px;
    font-weight: 700;
}

.psx-bnm-message.is-error {
    color: #c01835;
}

.psx-bnm-message.is-success {
    color: #168a45;
}

.psx-bnm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin-top: 16px;
    padding: 16px 24px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease;
}

.psx-bnm-button:hover {
    opacity: .92;
    transform: translateY(-1px);
}

.psx-bnm-button:disabled {
    opacity: .65;
    cursor: wait;
}

.psx-bnm-button-note {
    margin-top: 8px;
    color: var(--psx-bnm-muted);
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

.psx-bnm-button-loading {
    display: none;
}

.psx-bnm-button.is-loading .psx-bnm-button-text {
    display: none;
}

.psx-bnm-button.is-loading .psx-bnm-button-loading {
    display: inline;
}

.psx-bnm-notice {
    padding: 14px 16px;
    border: 1px solid #ffd8a8;
    border-radius: 8px;
    background: #fff8ed;
    color: #7a4a00;
    font-weight: 700;
}

.psx-bnm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0,0,0,0.72);
}

.psx-bnm-lightbox.is-open {
    display: flex;
}

.psx-bnm-lightbox-inner {
    position: relative;
    width: min(760px, 96vw);
    max-height: 92vh;
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    overflow: auto;
}

.psx-bnm-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #f1f1f4;
    color: #111;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.psx-bnm-lightbox-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 260px;
}

.psx-bnm-lightbox-main img {
    display: block;
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.psx-bnm-lightbox-thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.psx-bnm-lightbox-thumb {
    width: 88px;
    height: 88px;
    padding: 6px;
    border: 1px solid var(--psx-bnm-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.psx-bnm-lightbox-thumb.is-active {
    border-color: #121218;
}

.psx-bnm-lightbox-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .psx-bnm-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .psx-bnm-gift-box {
        grid-template-columns: 92px 1fr;
        gap: 14px;
        padding: 14px;
    }

    .psx-bnm-tshirt-image-wrap {
        width: 92px;
        min-height: 92px;
    }

    .psx-bnm-gift-content h4 {
        font-size: 18px;
    }

    .psx-bnm-gift-content p {
        font-size: 14px;
    }

    .psx-bnm-size-option {
        min-width: 52px;
        min-height: 42px;
        padding: 9px 12px;
    }

    .psx-bnm-lightbox-inner {
        padding: 18px;
        border-radius: 14px;
    }

    .psx-bnm-lightbox-thumb {
        width: 70px;
        height: 70px;
    }
}
