.detail-wrap{
    display: flex;
    margin: 0 auto;
    gap: 2rem; 
    margin-top: 5rem;
    padding: 2rem;
    border-bottom: 2px solid var(--main-color);
    margin-bottom: 2rem;
}
.detail-content{
    margin: 5rem 0;
    text-align: center;
}
/* [왼쪽] 이미지 영역 */
.detail-left-area {
    flex: 1; /* 이미지를 조금 더 넓게 배치 */
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.detail-left-area img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* [오른쪽] 정보 영역 */
.detail-right-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}


.origin-price {
    font-size: 0.9rem;
    color: #aaa;
    text-decoration: line-through;
}
.sale-info {
    font-size: 1.2rem;
    font-weight: 700;
}
.discount-rate,
.current-price.on {
    color: var(--pt-blue); /* 지정하신 블루 색상 적용 */
    font-weight: 700;
}

/* 할인정보 박스 (피그마의 회색 박스) */
.promo-container {
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
}
.promo-title {
    font-size: 0.9rem;
    font-weight: 700;
}
.promo-list {
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* 배송/옵션 정보 */
.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}
.info-label { width: 4rem; font-weight: 700; }
.color-swatch {
    width: 1.5rem;
    height: 1.5rem;
    background-color: #0055ff; /* 다이슨 블루 */
    border-radius: 4px;
}

/* 하단 버튼 그룹 (찜 + 장바구니 + 구매하기) */
.action-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 1rem;
}
.btn-heart {
    width: 3rem;
    height: 3rem;
    border: none;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.btn-heart img{
    height: 1.2rem;
}
.action-group a{
    flex: 1;
    border: 1px solid #333;
}
.btn-cart {
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    height: 100%;
    width: 100%;
    border: none;
}
.btn-buy {
    flex: 1;
    height: 3rem;
    background: #333;
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
}
.benefit-card{
    display: flex;
    gap: 1rem;
    font-size: .8rem;

}
.benefit-card li{
    flex: 1;
    border: 0.5px solid #999;
    padding: 1rem;
    box-sizing: border-box;
}
.benefit-card li h4{
    margin-bottom: .5rem;
}
figure{
    line-height: 0;
}
.gif{
    max-width: 860px;
    width: 100%;
}
/* 반응형: 모바일에서는 세로로 쌓임 */
@media (max-width: 768px) {
    .product-detail-container .common-frame {
        flex-direction: column;
        padding: 0 1rem;
    }
    .detail-left-area { width: 100%; min-height: 20rem; }
    .benefit-card{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .product-name {
        display: -webkit-box;                 /* 플렉스형 박스 (옛 사양) */
        -webkit-box-orient: vertical;         /* 세로 방향 줄바꿈 기준*/
        -webkit-line-clamp: 1;                /* 보여줄 최대 줄 수 */
        overflow: hidden;                     /* 넘치는 내용 숨기기 */
        text-overflow: ellipsis;              /* 말줄임 표기 (보조) */
    }

    .btn-cart, .btn-buy{
        font-size: .8rem;
    }
    .promo-container {
        flex-direction: column;
    }
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
@media (max-width: 400px){
    .detail-left-area {
        max-height: 200px;
        height: auto;
    }
    .action-group{
        justify-content: center;
        align-items: center;
    }
    .detail-wrap {
        gap: 1rem;
        padding: 1rem;
    }
    .action-group {
        margin-top: 0;
        gap: .5rem;
    }
    .btn-heart {
        width: 1.2rem;
        height: 1.2rem;
    }
    .action-group a {
        /* padding: .3rem; */
        height: 3rem;
    }
    .btn-buy {
        /* padding: .3rem; */
    }
    .promo-list{
        padding-left: 0;

    }
    .promo-list li{
        display: -webkit-box;                 /* 플렉스형 박스 (옛 사양) */
        -webkit-box-orient: vertical;         /* 세로 방향 줄바꿈 기준*/
        -webkit-line-clamp: 1;                /* 보여줄 최대 줄 수 */
        overflow: hidden;                     /* 넘치는 내용 숨기기 */
        text-overflow: ellipsis;              /* 말줄임 표기 (보조) */
    }
    .info-row {
        gap: .5rem;
    }
    .promo-container {
        gap: .5rem;
    }
}