/* ==============================
   SECTION 05 PRODUCT
============================== */

.olle-product-section {
    --product-section-bg: #fff0dc;
    --product-accent: #ff7817;

    position: relative;
    width: 100%;
    padding: 120px 0 135px;
    background: var(--product-section-bg);
    box-sizing: border-box;
    overflow: hidden;
    transition: background 0.65s ease;
}

/* 상품 선택별 섹션 배경 */
.olle-product-section.is-product-hallabong {
    --product-section-bg: #fff0dc; /* 옅은 귤색 */
    --product-accent: #ff7817;
}

.olle-product-section.is-product-cheonhyehyang {
    --product-section-bg: #eef8df; /* 옅은 연두색 */
    --product-accent: #8fbd42;
}

.olle-product-section.is-product-redhyang {
    --product-section-bg: #ffe2ca; /* 옅은 주황색 */
    --product-accent: #ff7f24;
}

.olle-product-inner {
    display: grid;
    grid-template-columns: 430px 980px;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
    width: calc(100% - 300px);
    max-width: 1520px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ==============================
   LEFT
============================== */

.olle-product-left {
    position: relative;
    z-index: 5;
}

.olle-product-label {
    margin: 0 0 34px;
    color: var(--product-accent);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.olle-product-title {
    margin: 0;
    color: #1d1d1d;
    font-size: 58px;
    font-weight: 900;
    line-height: 1.38;
    letter-spacing: -0.06em;
}

.olle-product-tags {
    display: grid;
    grid-template-columns: repeat(2, 170px);
    gap: 14px;
    margin-top: 72px;
}

.olle-product-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: #f0f0f0;
    color: #1d1d1d;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    cursor: pointer;
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.olle-product-tag:hover {
    transform: translateY(-2px);
}

.olle-product-tag.is-active {
    background: var(--product-accent);
    color: #fff;
}

.olle-product-buy {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 76px;
    color: #111;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.055em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.olle-product-buy i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-style: normal;
    font-size: 33px;
    font-weight: 300;
    line-height: 1;
    transition: background 0.3s ease, transform 0.3s ease;
}

.olle-product-buy:hover {
    color: var(--product-accent);
}

.olle-product-buy:hover i {
    background: var(--product-accent);
    transform: translateX(4px);
}

/* ==============================
   RIGHT CIRCLE AREA
============================== */

.olle-product-right {
    position: relative;
    width: 980px;
    height: 760px;
    min-width: 0;
}

.olle-product-circle {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: var(--circle-size);
    height: var(--circle-size);
    padding: 0;
    border: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #f4f4f4;
    cursor: pointer;
    box-sizing: border-box;
    transform: translate3d(var(--circle-x), var(--circle-y), 0);
    transform-origin: center;
    transition:
        transform 0.78s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.78s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.78s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.45s ease,
        filter 0.45s ease;
}

.olle-product-circle::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.45s ease;
    pointer-events: none;
}

.olle-product-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.55s ease, background 0.55s ease;
}

.olle-product-circle img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.65s ease, opacity 0.45s ease;
}

.olle-product-circle strong {
    position: absolute;
    left: 50%;
    bottom: 12%;
    z-index: 4;
    width: 100%;
    padding: 0 24px;
    color: #fff;
    font-size: 31px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.06em;
    text-align: center;
    transform: translate(-50%, 20px);
    opacity: 0;
    box-sizing: border-box;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

/* PC 위치 */
.olle-product-circle.is-pos-main {
    --circle-size: 520px;
    --circle-x: 70px;
    --circle-y: 270px;
    z-index: 3;
}

.olle-product-circle.is-pos-top {
    --circle-size: 310px;
    --circle-x: 540px;
    --circle-y: 0px;
    z-index: 2;
}

.olle-product-circle.is-pos-bottom {
    --circle-size: 310px;
    --circle-x: 740px;
    --circle-y: 380px;
    z-index: 1;
}

/* 활성 상태 */
.olle-product-circle.is-active::after {
    background: rgba(0, 0, 0, 0.16);
}

.olle-product-circle.is-active .olle-product-bg {
    opacity: 0.32;
}

.olle-product-circle.is-active img {
    transform: scale(1.035);
}

.olle-product-circle.is-active strong {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* 상품별 원 내부 오버레이 컬러 */
.olle-product-circle[data-product-target="0"] .olle-product-bg {
    background: #ff8a2a;
}

.olle-product-circle[data-product-target="1"] .olle-product-bg {
    background: #ff7f24;
}

.olle-product-circle[data-product-target="2"] .olle-product-bg {
    background: #8fbd42;
}

.olle-product-circle:not(.is-active) {
    opacity: 1;
    filter: saturate(0.98);
}

.olle-product-circle:not(.is-active):hover {
    filter: saturate(1.06);
}

.olle-product-circle:not(.is-active):hover img {
    transform: scale(1.045);
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 1600px) {
    .olle-product-inner {
        width: calc(100% - 180px);
        grid-template-columns: 400px 850px;
        gap: 60px;
    }

    .olle-product-title {
        font-size: 52px;
    }

    .olle-product-right {
        width: 850px;
        height: 690px;
    }

    .olle-product-circle.is-pos-main {
        --circle-size: 470px;
        --circle-x: 50px;
        --circle-y: 245px;
    }

    .olle-product-circle.is-pos-top {
        --circle-size: 280px;
        --circle-x: 470px;
        --circle-y: 0px;
    }

    .olle-product-circle.is-pos-bottom {
        --circle-size: 280px;
        --circle-x: 640px;
        --circle-y: 350px;
    }

    .olle-product-circle strong {
        font-size: 28px;
    }
}

@media (max-width: 1280px) {
    .olle-product-section {
        padding: 105px 0 120px;
    }

    .olle-product-inner {
        width: calc(100% - 90px);
        grid-template-columns: 350px 680px;
        gap: 45px;
    }

    .olle-product-label {
        margin-bottom: 28px;
        font-size: 16px;
    }

    .olle-product-title {
        font-size: 46px;
    }

    .olle-product-tags {
        grid-template-columns: repeat(2, 145px);
        gap: 12px;
        margin-top: 56px;
    }

    .olle-product-tag {
        height: 52px;
        font-size: 21px;
    }

    .olle-product-buy {
        margin-top: 58px;
        font-size: 22px;
    }

    .olle-product-right {
        width: 680px;
        height: 570px;
    }

    .olle-product-circle.is-pos-main {
        --circle-size: 410px;
        --circle-x: 20px;
        --circle-y: 160px;
    }

    .olle-product-circle.is-pos-top {
        --circle-size: 235px;
        --circle-x: 370px;
        --circle-y: 0px;
    }

    .olle-product-circle.is-pos-bottom {
        --circle-size: 235px;
        --circle-x: 445px;
        --circle-y: 300px;
    }

    .olle-product-circle strong {
        font-size: 25px;
    }
}

@media (max-width: 1024px) {
    .olle-product-section {
        padding: 90px 0 105px;
    }

    .olle-product-inner {
        grid-template-columns: 1fr;
        gap: 70px;
        width: calc(100% - 48px);
    }

    .olle-product-left {
        text-align: center;
    }

    .olle-product-title {
        font-size: 42px;
        line-height: 1.3;
    }

    .olle-product-tags {
        justify-content: center;
        grid-template-columns: repeat(3, 145px);
        margin-top: 48px;
    }

    .olle-product-buy {
        margin-top: 48px;
    }

    .olle-product-right {
        width: 760px;
        max-width: 100%;
        height: 570px;
        margin: 0 auto;
    }

    .olle-product-circle.is-pos-main {
        --circle-size: 410px;
        --circle-x: 50px;
        --circle-y: 155px;
    }

    .olle-product-circle.is-pos-top {
        --circle-size: 230px;
        --circle-x: 480px;
        --circle-y: 0px;
    }

    .olle-product-circle.is-pos-bottom {
        --circle-size: 230px;
        --circle-x: 530px;
        --circle-y: 305px;
    }
}

/* ==============================
   MOBILE
   한 줄 3개 / 가운데 선택 크게
============================== */

@media (max-width: 768px) {
    .olle-product-section {
        padding: 74px 0 86px;
    }

    .olle-product-inner {
        width: 100%;
        padding: 0 20px;
        gap: 40px;
    }

    .olle-product-left {
        text-align: center;
    }

    .olle-product-label {
        margin-bottom: 22px;
        font-size: 14px;
    }

    .olle-product-title {
        font-size: 34px;
        line-height: 1.35;
    }

    .olle-product-tags {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 430px;
        margin: 34px auto 0;
    }

    .olle-product-tag {
        width: 100%;
        height: 44px;
        padding: 0 8px;
        font-size: 16px;
    }

    .olle-product-buy {
        margin-top: 30px;
        font-size: 20px;
    }

    .olle-product-buy i {
        width: 34px;
        height: 34px;
        font-size: 28px;
    }

    .olle-product-right {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        max-width: 560px;
        height: auto;
        margin: 0 auto;
    }

    .olle-product-circle {
        position: relative;
        left: auto;
        top: auto;
        transform: none !important;
        flex: 0 0 auto;

        /*
           모바일 실제 기기에서 원 이동/크기 변경 시
           내부 텍스트가 같이 좌우로 튀는 현상 방지
        */
        transition:
            width 0.32s ease,
            height 0.32s ease,
            opacity 0.3s ease,
            filter 0.3s ease !important;
    }

    .olle-product-circle.is-pos-top {
        order: 1;
        width: min(26vw, 110px);
        height: min(26vw, 110px);
        z-index: 1;
    }

    .olle-product-circle.is-pos-main {
        order: 2;
        width: min(42vw, 180px);
        height: min(42vw, 180px);
        z-index: 3;
    }

    .olle-product-circle.is-pos-bottom {
        order: 3;
        width: min(26vw, 110px);
        height: min(26vw, 110px);
        z-index: 1;
    }

    /*
       핵심 수정:
       PC에서는 left:50% + translateX(-50%) 유지
       모바일에서는 좌우 이동값을 제거해서 텍스트가 순간 이동하지 않게 처리
    */
    .olle-product-circle strong {
        left: 0;
        right: 0;
        bottom: 10%;
        width: 100%;
        padding: 0 10px;
        font-size: 18px;
        text-align: center;

        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;

        transition: opacity 0.25s ease !important;
        -webkit-transition: opacity 0.25s ease !important;

        animation: none !important;
        -webkit-animation: none !important;

        will-change: opacity;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .olle-product-circle.is-active strong {
        opacity: 1;
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
    }

    .olle-product-circle:not(.is-active) strong {
        opacity: 0;
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
    }

    .olle-product-circle:not(.is-active) {
        opacity: 0.9;
    }
}

@media (max-width: 480px) {
    .olle-product-section {
        padding: 64px 0 74px;
    }

    .olle-product-inner {
        padding: 0 16px;
        gap: 36px;
    }

    .olle-product-title {
        font-size: 30px;
    }

    .olle-product-tags {
        gap: 7px;
        margin-top: 30px;
    }

    .olle-product-tag {
        height: 40px;
        font-size: 14px;
    }

    .olle-product-buy {
        margin-top: 26px;
        font-size: 18px;
    }

    .olle-product-right {
        gap: 8px;
    }

    .olle-product-circle.is-pos-top {
        width: min(26vw, 95px);
        height: min(26vw, 95px);
    }

    .olle-product-circle.is-pos-main {
        width: min(42vw, 155px);
        height: min(42vw, 155px);
    }

    .olle-product-circle.is-pos-bottom {
        width: min(26vw, 95px);
        height: min(26vw, 95px);
    }

    .olle-product-circle strong {
        font-size: 15px;
    }
}

@media (max-width: 390px) {
    .olle-product-circle.is-pos-top,
    .olle-product-circle.is-pos-bottom {
        width: min(25vw, 85px);
        height: min(25vw, 85px);
    }

    .olle-product-circle.is-pos-main {
        width: min(40vw, 140px);
        height: min(40vw, 140px);
    }

    .olle-product-circle strong {
        font-size: 14px;
    }
}