/* Modern sophisticated product detail page style */

.modern-item-view {
    max-width: 1440px;
    margin: 40px auto;
    margin-top: 0;
    padding: 0 0;
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
}

.modern-container {
    display: flex;
    gap: 100px;
    align-items: flex-start;
}

/* Gallery styles */
.modern-gallery {
    width: 500px;
    max-width: 600px;
}

.modern-main-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.modern-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.modern-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    list-style: none;
    padding: 0;
    overflow-x: auto;
}

.modern-thumbnails li {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.modern-thumbnails li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-thumbnails li.active {
    border-color: #333;
}

/* Info Section Styles */
.modern-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.info-header {
    /* margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px; */
}

.category-path {
    font-size: 13px;
    color: #888;
    display: block;
    margin-bottom: 8px;
}

#sit_title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
    color: #111;
}

.modern-basic-desc {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.price-section {
    margin-bottom: 10px;
}

.price-section .label {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-bottom: 4px;
}

.cust-price {
    display: block;
    text-decoration: line-through;
    color: #bbb;
    font-size: 16px;
    margin-bottom: 4px;
}

.main-price {
    font-size: 32px;
    color: #ff3b30;
    font-weight: 700;
}

.modern-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    /* background: #fdfdfd; */
    padding: 0 0 25px;
    /* border-radius: 8px; */
    /* border: 1px solid #f0f0f0; */
}

.meta-item.rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 18px;
    line-height: 1;
    vertical-align: middle;
}

.modern-star-rating .ri-star-fill {
    color: #f5a524;
}

.modern-star-rating .ri-star-line {
    color: #d8d8d8;
}

.review-count {
    font-size: 14px;
    color: #666;
}

.modern-actions-top {
    display: flex;
    gap: 10px;
}

.modern-actions-top button {
    background: none;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modern-actions-top button span {
    margin-left: 5px;
}

.modern-actions-top button i {
    font-size: 20px;
}

.modern-actions-top button:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.modern-actions-top button.on {
    border-color: #ff3b30;
    color: #ff3b30;
}

/* Table Specs */
.product-specs-brief {
    position: relative;
    overflow: hidden;
    max-height: 200px;
    /* 초기 높이 제한으로 깜빡임(Layout Shift) 방지 */
    transition: max-height 0.3s ease-out;
}

.product-specs-brief .specs-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    z-index: 5;
}

.specs-more-btn-wrap {
    text-align: center;
    margin: 15px 0 20px;
    position: relative;
    z-index: 10;
}

.specs-more-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); */
}

.specs-more-btn:hover {
    border-color: #bbb;
    background: #fcfcfc;
}

.modern-options {
    position: relative;
    display: flex;
    width: 100%;
    gap: 10px;
    margin-bottom: 0px;
    align-items: center;
}


.rental-policy-section .label-title,
.rental-carrier-section .label-title {
    display: block !important;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    width: 100px;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.modern-table th {
    width: 100px;
    text-align: left;
    padding: 6px 0;
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

.modern-table td {
    padding: 6px 0;
    font-size: 14px;
    color: #333;
}

/* Options Section */
.modern-options {
    margin-bottom: 0;
}

.modern-options h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 20px;
}

.modern-options select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: #fff;
    margin-bottom: 0;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    box-sizing: border-box;
}

/* Total Price */
.modern-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 0;
    border-top: 2px solid #333;
    margin-bottom: 30px;
}

.modern-total .label {
    font-size: 16px;
    font-weight: 600;
}

.modern-total .total-value {
    font-size: 28px;
    color: #ff3b30;
    font-weight: 800;
}

/* Floating Sticky Purchase Bar — 스크롤 따라오려면 top/bottom 중 하나 필수(아래로 스크롤 시에는 top 권장) */
#sit_buy {
    position: sticky;
    top: 82px;
    align-self: flex-start;
    background: #fff;
    z-index: 1000;
    padding: 20px 20px 22px;
    margin: 0;
    width: 100%;
    max-width: 360px;
    border-left: 1px solid #e8e8e8;
    box-sizing: border-box;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

#sit_buy::-webkit-scrollbar {
    width: 5px;
}

#sit_buy::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 10px;
}

#sit_buy::-webkit-scrollbar-track {
    background-color: transparent;
}

#sit_buy .sit_buy_inner {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#sit_buy .sit_side_option {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

#sit_buy .sit_side_option h3 {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    letter-spacing: -0.02em;
    margin: 0 0 2px;
    padding-bottom: 2px;
    border-bottom: 1px solid #f3f4f6;
}

/* get_item_options / get_item_supply (div 모드) */
#sit_buy .get_side_item_options,
#sit_buy .get_item_supply {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: flex-start;
}

#sit_buy .get_side_item_options .label-title,
#sit_buy .get_item_supply .label-title,
#sit_buy .get_side_item_options label[for^="it_side_option_"],
#sit_buy .get_item_supply label[for^="it_side_supply_"] {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.3;
}

#sit_buy .get_side_item_options>span {
    display: block;
    width: 100%;
}

#sit_buy .sit_side_option select {
    width: 100%;
    flex: none;
    min-height: 42px;
    height: auto;
    padding: 12px 40px 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: #f9fafb;
    color: #111827;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    box-sizing: border-box;
}

#sit_buy .sit_side_option select:hover {
    border-color: #d1d5db;
    background-color: #f3f4f6;
}

#sit_buy .sit_side_option select:focus {
    outline: none;
    border-color: #111827;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

#sit_buy .sit_sel_option {
    display: block;
    padding-top: 14px;
    margin-top: 2px;
    border-top: 1px solid #f3f4f6;
}

#sit_buy .sit_sel_option h3 {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 10px;
}

#sit_buy .sit_opt_added {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    /* scrollbar-gutter: stable; */
}

#sit_buy .sit_opt_added li {
    position: relative;
    margin: 0;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

#sit_buy .sit_opt_added .opt_info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

#sit_buy .sit_opt_added .sit_opt_subj {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    line-height: 1.45;
    word-break: break-word;
}

#sit_buy .sit_opt_added .sit_opt_prc {
    font-size: 13px;
    font-weight: 700;
    color: #ef4444;
    flex-shrink: 0;
}

#sit_buy .sit_opt_added .opt_count {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e8eaed;
}

#sit_buy .sit_opt_added .opt_count::after {
    display: none;
}

#sit_buy .sit_opt_added button:not(.sit_opt_del) {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #4b5563;
    transition: background 0.15s, border-color 0.15s;
}

#sit_buy .sit_opt_added button:not(.sit_opt_del):hover {
    background: #f3f4f6;
    color: #111827;
}

#sit_buy .sit_opt_added .num_input {
    width: 42px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

#sit_buy .sit_opt_added .opt_count .sit_opt_prc {
    margin-left: auto;
}

#sit_buy .sit_opt_added .sit_opt_del {
    position: absolute;
    top: 8px;
    right: 8px;
}

#sit_buy .sum_section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 16px;
    margin-top: 2px;
    border-top: 1px solid #e8eaed;
}

#sit_buy .sit_tot_price {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

#sit_buy .sit_tot_price span {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

#sit_buy .sit_tot_price strong {
    font-size: clamp(22px, 5vw, 26px);
    color: #ef4444;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

#sit_buy .sit_order_btn {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

#sit_buy .sit_order_btn button {
    height: 50px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    border: none;
    white-space: nowrap;
}

#sit_buy .sit_btn_cart {
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb !important;
}

#sit_buy .sit_btn_buy {
    background: #111827;
    color: #fff;
}

#sit_buy .sit_btn_cart:hover {
    background: #f9fafb;
    border-color: #d1d5db !important;
}

#sit_buy .sit_btn_buy:hover {
    background: #000;
}

#sit_buy .sit_btn_buy:active,
#sit_buy .sit_btn_cart:active {
    transform: scale(0.98);
}

/* Mobile Responsive for #sit_buy */
@media (max-width: 1024px) {
    #sit_buy {
        max-width: none;
        padding: 16px;
        bottom: 10px;
        border-radius: 14px;
    }

    #sit_buy .sit_buy_inner {
        gap: 14px;
    }

    #sit_buy .sit_side_option {
        width: 100%;
    }

    #sit_buy .sit_opt_added {
        max-height: 160px;
    }
}

/* Selected Option List Styles (Simplified) */
#sit_opt_added {
    margin: 20px 0;
    padding: 0;
    width: 100%;
    list-style: none;
}

#sit_opt_added li {
    width: 100%;
    background: #f8f9fa;
    padding: 15px;
    /* border-radius: 8px; */
    margin-bottom: 10px;
    border: 1px solid #eee;
}

#sit_opt_added .opt_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

#sit_opt_added .sit_opt_subj {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    flex: 1;
}

#sit_opt_added .sit_opt_prc {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

#sit_opt_added .sit_opt_del {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

#sit_opt_added .sit_opt_del:hover {
    color: #ff3b30;
}

/* Buy Buttons */
.modern-buy-btns {
    display: flex;
    gap: 12px;
}

.modern-buy-btns button {
    flex: 1;
    height: 60px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-cart {
    background: #fff;
    border: 1px solid #333 !important;
    color: #333;
}

.btn-buy {
    background: #333;
    color: #fff;
}

.btn-cart:hover {
    background: #f8f8f8;
}

.btn-buy:hover {
    background: #000;
}

.modern-soldout {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    color: #888;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .modern-container {
        flex-direction: column;
        gap: 30px;
    }

    .modern-gallery {
        max-width: 100%;
        width: 100%;
    }

    #sit_title {
        font-size: 22px;
    }
}