/* div.item_body 이하의 P 태그 및 기타 태그를 수저하면됨 */
div.item_body p {
    line-height: 1.5;
}
div.item_body p * {
    line-height: 1.5;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Pretendard', sans-serif;
    background: #ffffff;
    color: #1A1F3B;
}

.wrap {
    width: 1440px;
    margin: 0 auto;
}

.tab-menu {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid #E3E5E8;
    margin-top: 80px;
    background: #ffffff;
}
.tab-menu button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    background: #fff;
    border: none;
    border-right: 1px solid #E3E5E8;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.2s;
    color: #4B5563;
    font-weight: 500;
}
.tab-menu button:hover {
    background: #F0F4FF;
    color: #1F2937;
}
.tab-menu button:last-child {
    border-right: none;
}
.tab-menu button::before {
    font-size: 20px;
}
.tab-menu button:nth-child(1)::before {
    content: '💻';
}
.tab-menu button:nth-child(2)::before {
    content: '🛍️';
}
.tab-menu button:nth-child(3)::before {
    content: '🏨';
}
.tab-menu button:nth-child(4)::before {
    content: '🏢';
}
.tab-menu button:nth-child(5)::before {
    content: '🖼️';
}
.tab-menu button:nth-child(6)::before {
    content: '➕';
}

.container {
    display: flex;
    gap: 40px;
    padding: 40px 0;
}
.product-info {
    flex: 1;
}
.mockup {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #9CA3AF;
    border: 1px solid #E3E5E8;
}

.product-purchase {
    width: 500px;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.product-purchase h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #1A1F3B;
}
.product-purchase .subtitle {
    font-size: 14px;
    color: #6E7382;
    margin-bottom: 32px;
}

.group-box {
    margin-top: 24px;
    margin-bottom: 32px;
}
.group-box h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1A1F3B;
}
.group-box h4 strong {
    font-weight: 700;
}

.price-row,
.qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.price-value,
.qty {
    width: 200px;
}

.price-value {
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

.qty {
    display: flex;
    align-items: center;
    gap: 12px;
}
.qty button {
    padding: 6px 14px;
    font-size: 16px;
    border: 1px solid #E3E5E8;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.qty button:hover {
    background: #F3F4F6;
}
.qty span {
    min-width: 32px;
    text-align: center;
    font-size: 16px;
}

select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #E3E5E8;
    border-radius: 6px;
    background: #fff;
}

.addon-box label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #1A1F3B;
}

.addon-warning {
    margin-top: 12px;
    font-size: 13px;
    color: #D63031;
    background: #FFF2F2;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #F5B5B5;
    display: flex;
    align-items: center;
}
.addon-warning::before {
    content: '⚠️';
    display: inline-block;
    margin-right: 8px;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #E3E5E8;
    border-radius: 6px;
    margin-bottom: 12px;
}

.total {
    text-align: right;
    font-size: 20px;
    margin-top: 24px;
    font-weight: 600;
}

.buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.buttons a {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    display: block;
    text-align: center;
}
.cart,
.sample {
    background: #fff;
    border: 1px solid #E3E5E8;
}
.cart:hover,
.sample:hover {
    background: #F3F4F6;
}
.buy {
    background: #0055FF;
    color: #fff;
    border: none;
}
.buy:hover {
    background: #0041C4;
}

.bottom-tab {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #E3E5E8;
    border-bottom: 1px solid #E3E5E8;
    background: #ffffff;
}
.bottom-tab span {
    padding: 16px 24px;
    font-size: 15px;
    cursor: pointer;
    color: #6B7280;
    transition: all 0.2s;
}
.bottom-tab .active {
    color: #1A1F3B;
    font-weight: 600;
    border-bottom: 2px solid #0055FF;
}

.tab-contents {
    padding: 40px 0;
    background: #ffffff;
}
.tab-content {
    display: none;
    color: #333;
    font-size: 15px;
}
.tab-content.active {
    display: block;
}
ul.thumb_list{
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
ul.thumb_list li {
    width: calc(100% / 5 - 8px);
    border-radius: 12px;
}
ul.thumb_list li img {
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
}
ul.thumb_list li img.thum_selected {
    border: 1px solid #bababa;
    border-radius: 5px;
}
div.item_review_area_no_item{
    border: 0;
}
div.no_question{
    border: 0;
}
div.item_etc_info{
    margin-top: 0;
}
div.tab-contents img{
    max-width: 100%;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .product-info {
        width: 100%;
    }
    .product-purchase {
        width: 100%;
    }
    .bottom-tab span{
        padding: 10px 16px;
        font-size: 13px;
    }
    div.tab-contents{
        padding: 10px;
    }
    div.product-info{
        padding: 10px;
    }
    div.product-purchase{
        padding: 10px;
    }
}