.detail-main {
    min-height: 90vh;
    position: relative;
}

.page-header {
    width: 100%;
    height: 190px;
    background-color: #F0F1FF;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-header-container {
    width: 1315px;
    max-width: 100%;
    /* height: 160px; */
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header-container-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.page-header-container-left-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-header-container-left-image {
    height: 120px;
    width: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-container-left-text-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.page-header-container-left-text-description {
    color: #999999;
    font-size: 18px;
    font-weight: 500;
}

.page-header-container-right {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.step-indicator {
    width: 250px;
}

.step-indicator-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.step-indicator-line {
    position: absolute;
    width: 187px;
    height: 1px;
    background: #E1E1E1;
    top: 23px;
    left: 31px;
    z-index: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 46px;
    height: 46px;
    border-radius: 23px;
    border: 1.44px solid #E1E1E1;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4130DF;
    font-size: 21.6px;
    font-family: 'Pretendard JP', Arial, sans-serif;
    font-weight: 700;
    line-height: 25.92px;
    position: relative;
    z-index: 1;
}

.step-number-active {
    background: #4130DF;
    border-color: #4130DF;
    color: white;
}

.step-label {
    width: 64px;
    text-align: center;
    color: #BFBFBF;
    font-size: 16px;
    font-family: 'Pretendard JP', Arial, sans-serif;
    font-weight: 400;
    line-height: 25.92px;
}

.step-label-active {
    color: #4130DF;
    font-weight: 600;
}

.step-indicator-button {
    width: 248px;
    height: 47px;
    position: relative;
    background: white;
    border-radius: 8px;
    outline: 1px #3617CE solid;
    outline-offset: -1px;
    border: none;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    color: #3617CE;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
}

.page-header-container-right-text-original-price {
    font-size: 14px;
    color: #5F6777;
}

.page-header-container-right-text {
    font-size: 20px;
    font-weight: 700;
    color: #170D61;
}

.page-header-container-right-text-currency {
    font-size: 20px;
    color: #170D61;
}

.container {
    width: 1315px;
    margin: 40px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.content-info {
    display: flex;
    justify-content: space-between;
    gap: 54px;
}

.content-info-left {
    width: 660px;
    height: 630px;
    flex-shrink: 0;
    background-color: #F2F2F2;
}

.content-info-left img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.content-info-right {
    width: 601px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 630px;
}

.content-divider {
    width: 100%;
    height: 1px;
    border-top: 1px #EEEEEE solid;
}

.content-section-title {
    color: #333333;
    font-size: 21.30px;
    font-weight: 700;
}

.subscription-options-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.subscription-option {
    width: 100%;
    height: 86px;
    border-radius: 10px;
    outline: 1px #E7E7E7 solid;
    outline-offset: -1px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    gap: 22px;
    cursor: pointer;
}

.subscription-option.active {
    background: #F4F2FF;
    box-shadow: 0px 0px 8px rgba(54, 23, 206, 0.20);
    outline: 2px #3617CE solid;
}

.radio-button {
    display: none;
}

.radio-button-inner {
    display: none;
}

.subscription-text {
    color: #333333;
    font-size: 14.90px;
    font-weight: 600;
}

.subscription-option.active .subscription-text {
    color: #3617CE;
}

/* 선택되지 않은 옵션들을 흐려지게 하는 효과 */
.subscription-options-container.has-selection .subscription-option:not(.active) {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.subscription-options-container.has-selection .subscription-option.active {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.subscription-options-container .subscription-option {
    transition: opacity 0.3s ease;
}

.color-options-container {
    display: flex;
    gap: 32px;
}

.color-option {
    cursor: pointer;
    text-align: center;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px #DBDBDB solid;
    margin: 0 auto 10px;
}

.color-option.active .color-swatch {
    border: 3px #3617CE solid;
}

.color-name {
    color: #999999;
    font-size: 12.80px;
    font-weight: 600;
}

.color-option.active .color-name {
    color: #3617CE;
}

.content-buttons {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    margin-top: auto;
}

.content-button {
    height: 64px;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-button-back {
    width: 236px;
    background: white;
    color: #3617CE;
    outline: 1px #3617CE solid;
    outline-offset: -1px;
}

.content-button-next {
    width: 337px;
    background: #3617CE;
    color: white;
}

.content-button-kakao {
    display: none; /* 데스크톱에서는 숨김 */
}

.content-detail {
    margin-top: 80px;
}

.content-detail-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    margin-bottom: 80px;
}

.content-detail-image img {
    width: 100%;
    height: auto;
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .page-header {
        width: 100%;
        height: auto;
        background-color: #F0F1FF;
        position: static;
    }

    .page-header-container {
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        padding: 20px;
        box-sizing: border-box;
    }

    .page-header-container-left {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .page-header-container-left-content {
        align-items: flex-start;
        text-align: left;
    }

    .page-header-container-left-text-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .page-header-container-left-text-description {
        font-size: 14px;
    }

    .page-header-container-right {
        justify-content: flex-start;
        border-top: none;
        padding-top: 0;
        margin-left: 0;
    }

    .content-info {
        flex-direction: column;
        align-items: center;
    }

    .content-info-left {
        display: none;
    }

    .container {
        width: 100%;
        margin: 20px auto 0;
        padding: 0 16px;
    }

    .content-info-right {
        width: 100%;
        height: auto;
        box-sizing: border-box;
        gap: 12px;
    }

    .subscription-option {
        width: 100%;
        height: 60px;
        box-sizing: border-box;
        padding: 0 16px;
    }

    .color-options-container {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

    .content-buttons {
        width: 100%;
        box-sizing: border-box;
        flex-direction: column;
        gap: 8px;
    }

    .content-button {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px;
    }

    .content-button-kakao {
        display: flex; /* 모바일에서는 표시 */
        background: #FEE500;
        color: #000000;
    }

    .step-indicator {
        display: none;
    }

    .content-detail {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .content-detail-title {
        font-size: 22px;
        margin-bottom: 40px;
    }

    .content-detail-image {
        margin-bottom: 40px;
    }

    .content-section-title {
        font-size: 16px;
    }
    
    .subscription-options-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    /* 모바일에서도 선택되지 않은 옵션 흐림 효과 적용 */
    .subscription-options-container.has-selection .subscription-option:not(.active) {
        opacity: 0.4;
        transition: opacity 0.3s ease;
    }
    
    .subscription-options-container.has-selection .subscription-option.active {
        opacity: 1;
        transition: opacity 0.3s ease;
    }
}