/* ========================================
   META HINT - Shop Skin (OUUI-style)
   Product Detail & Shop Pages
   ======================================== */

/* ---- Item Detail Layout ---- */
.mh-item-wrap { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.mh-item-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #eee;
}

/* ---- Gallery ---- */
.mh-gallery-main {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.mh-gallery-main a { display: none; }
.mh-gallery-main a.visible { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.mh-gallery-main img { max-width: 90%; max-height: 90%; object-fit: contain; }
.mh-no-img { max-width: 70% !important; }
#popup_item_image { display: none !important; }

.mh-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    list-style: none;
    padding: 0;
}
.mh-gallery-thumbs li {
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    transition: border-color 0.2s;
}
.mh-gallery-thumbs li:hover { border-color: #1a1a2e; }
.mh-gallery-thumbs a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.mh-gallery-thumbs img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---- Product Info ---- */
.mh-item-info { display: flex; flex-direction: column; }
.mh-breadcrumb {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
}
.mh-breadcrumb a { color: #999; transition: color 0.2s; }
.mh-breadcrumb a:hover { color: #1a1a2e; }
.mh-breadcrumb span { margin: 0 0.35rem; }

.mh-item-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.mh-item-desc {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ---- Price Table ---- */
.mh-price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
.mh-price-table th {
    text-align: left;
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
    padding: 0.6rem 0;
    width: 120px;
    vertical-align: top;
}
.mh-price-table td {
    font-size: 0.85rem;
    color: #333;
    padding: 0.6rem 0;
}
.mh-price-row td { font-size: 1rem; }
.mh-price {
    font-size: 1.25rem !important;
    font-weight: 700;
    color: #1a1a2e;
}

/* ---- Options ---- */
.mh-option-section { margin-bottom: 1rem; }
.mh-option-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}
.mh-option-section select,
.mh-select,
.sit_option select,
.it_option,
.it_supply {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    color: #333;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color 0.2s;
}
.sit_option select:focus,
.it_option:focus,
.it_supply:focus { border-color: #1a1a2e; outline: none; }

/* ---- Quantity Controls ---- */
.mh-selected-options { margin: 1rem 0; }
#sit_opt_added { list-style: none; padding: 0; }
.mh-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.mh-qty-row .opt_name { flex: 1; font-size: 0.85rem; color: #333; }
.mh-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.mh-qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    transition: background 0.2s;
}
.mh-qty-btn:hover { background: #eee; }
.mh-qty-input {
    width: 48px !important;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}

/* ---- Total Price ---- */
.mh-total-price,
#sit_tot_price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #333;
}
#sit_tot_price strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

/* ---- Action Buttons ---- */
.mh-action-btns {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.mh-btn-buy {
    flex: 2;
    padding: 1rem;
    background: #1a1a2e;
    color: #fff;
    border: 2px solid #1a1a2e;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}
.mh-btn-buy:hover { background: #2D2B70; border-color: #2D2B70; }
.mh-btn-cart,
.mh-btn-wish {
    flex: 1;
    padding: 1rem;
    background: #fff;
    color: #1a1a2e;
    border: 2px solid #1a1a2e;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mh-btn-cart:hover,
.mh-btn-wish:hover { background: #f5f5f5; }

.mh-soldout-msg {
    background: #fff3f3;
    color: #c0392b;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 1rem 0;
}

/* ---- Related Products ---- */
.mh-related { padding: 3rem 0; border-bottom: 1px solid #eee; }
.mh-related-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.mh-related-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}
.mh-related-sub {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 2rem;
}

/* ---- Tabs ---- */
.mh-tabs-section { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.mh-tab-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 0;
}
.mh-tab-nav li { flex: 1; }
.mh-tab-nav li button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #fafafa;
    border: none;
    border-right: 1px solid #ddd;
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.03em;
}
.mh-tab-nav li:last-child button { border-right: none; }
.mh-tab-nav li button.selected {
    background: #fff;
    color: #1a1a2e;
    font-weight: 600;
    border-bottom: 2px solid #1a1a2e;
}
.mh-tab-nav li button:hover { color: #1a1a2e; }
.mh-tab-content { list-style: none; padding: 0; margin: 0; }
.mh-tab-pane { padding: 2rem 0 3rem; }
.mh-detail-content { line-height: 1.8; color: #444; font-size: 0.9rem; }
.mh-detail-content img { max-width: 100%; height: auto; }

/* ---- Review / Q&A ---- */
.mh-review-heading {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #1a1a2e;
    display: inline-block;
}
#itemuse, #itemqa { font-size: 0.9rem; }

/* ---- Info Table ---- */
.mh-info-heading {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #1a1a2e;
}
.mh-info-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #333;
}
.mh-info-table th,
.mh-info-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
}
.mh-info-table th {
    background: #fafafa;
    font-weight: 500;
    color: #555;
    width: 180px;
    text-align: left;
}
.mh-info-table td { color: #333; }

/* ---- Shipping Info Grid ---- */
.mh-shipping-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
}
.mh-ship-block h3 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: #1a1a2e;
}
.mh-ship-block p,
.mh-ship-block div {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.8;
}

/* ---- Youngcart default overrides ---- */
#sit_hhtml, #sit_thtml { display: none; }
#sct_location { display: none; }
#sit_star_sns, #sit_btn_opt, #sit_siblings,
#sit_ov_from > form > div > div.sit_info,
.sit_info { display: none; }
.sound_only { position: absolute; overflow: hidden; clip: rect(0,0,0,0); width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; }
#sit_buy { display: none !important; }

/* ========================================
   REVIEW LIST PAGE (#sps) & QA LIST PAGE (#sqa)
   ======================================== */

/* -- Search bar -- */
#sps_sch, #sqa_sch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: #f8f8fc;
    border-radius: 8px;
}
#sps_sch select, #sqa_sch select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    background: #fff;
}
#sps_sch .sch_wr, #sqa_sch .sch_wr {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
#sps_sch .sch_input, #sqa_sch .sch_input {
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    width: 220px;
}
#sps_sch .sch_btn, #sqa_sch .sch_btn {
    border: none;
    background: #1a1a2e;
    color: #fff;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
}
#sps_sch .sch_btn:hover, #sqa_sch .sch_btn:hover { background: #2D2B70; }

/* -- Review/QA list -- */
#sps, #sqa { max-width: 100%; }
#sps ol, #sqa ol { list-style: none; padding: 0; margin: 0; }
#sps li, #sqa li {
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}
#sps li:last-child, #sqa li:last-child { border-bottom: none; }

/* Product image */
.sps_img {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}
.sps_img_inner {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}
.sps_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sps_img .prd_detail {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(26,26,46,0.7);
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sps_img .prd_detail:hover { background: rgba(26,26,46,0.9); }
.sps_img a span { position: absolute; font-size: 0; overflow: hidden; }

/* Review content section */
.sps_section {
    flex: 1;
    min-width: 0;
    padding-left: 0;
    float: none;
    width: auto;
}
.sps_section .sps_pd_name {
    display: block;
    font-size: 0.8rem;
    color: #2D2B70;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.sps_section .sps_rv_tit {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}
.sps_section .sps_rv_thum {
    position: static;
    display: inline-block;
}
.sps_section .sps_rv_thum img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* Star rating */
.sps_section .sit_star,
.sps_section img[src*="s_star"] {
    height: auto;
    width: 70px;
    display: inline-block;
    vertical-align: middle;
}

/* Meta info (author, date) */
.sps_con_btn { clear: both; margin-top: 0.5rem; }
.sps_con_btn::after { display: block; clear: both; content: ""; }
.sps_dl {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0;
    float: left;
}
.sps_dl dt { font-size: 0; width: 0; height: 0; overflow: hidden; position: absolute; }
.sps_dl dd {
    margin: 0;
    font-size: 0.78rem;
    color: #999;
}
.sps_dl dd i { margin-right: 0.2rem; }

/* Review detail toggle button */
button.review_detail {
    float: right;
    padding: 0.35rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}
button.review_detail:hover {
    background: #1a1a2e;
    border-color: #1a1a2e;
    color: #fff;
}

/* Review detail content popup */
.review_detail_cnt {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(0,0,0,0.4);
}
.review_tp_cnt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.review_tp_cnt .sps_rv_tit {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.review_tp_cnt .sps_pd_name {
    font-size: 0.8rem;
    color: #2D2B70;
}
.review_tp_cnt .sps_opt_btn_more {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
}
.review_tp_cnt .sps_opt_li {
    display: none;
    position: absolute;
    top: 3rem;
    right: 1rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    overflow: hidden;
}
.review_tp_cnt .sps_opt_li li {
    padding: 0.5rem 1rem !important;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.8rem;
    cursor: pointer;
    color: #555;
    border: none;
}
.review_tp_cnt .sps_opt_li li:hover { background: #f8f8fc; }
.review_tp_cnt .sps_opt_li li:last-child { border-bottom: none; }
.review_tp_cnt p { font-size: 0.85rem; line-height: 1.7; color: #444; }
.review_tp_cnt img { max-width: 100%; height: auto; border-radius: 6px; margin: 0.5rem 0; }
.review_tp_cnt .review_close {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.6rem 2rem;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.review_tp_cnt .review_close:hover { background: #2D2B70; }

/* Review summary */
.review_summ {
    background: #f8f8fc;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

/* Reply */
.sps_reply {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #ddd;
}
.sps_reply h2 { font-size: 0.85rem; font-weight: 600; color: #2D2B70; }

/* Full content mode */
.sps_con_full { height: auto !important; }

/* Pagination */
.pg_wrap {
    text-align: center;
    margin: 2rem 0;
}
.pg_wrap a, .pg_wrap .pg_current {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    padding: 0 0.5rem;
    margin: 0 2px;
    font-size: 0.8rem;
    border-radius: 4px;
    text-decoration: none;
}
.pg_wrap a {
    color: #666;
    border: 1px solid #eee;
}
.pg_wrap a:hover { border-color: #1a1a2e; color: #1a1a2e; }
.pg_current {
    background: #1a1a2e;
    color: #fff;
    border: 1px solid #1a1a2e;
    font-weight: 600;
}

/* ========================================
   REVIEW/QA LIST RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    #sps li, #sqa li {
        flex-direction: column;
        gap: 0.75rem;
    }
    .sps_img { width: 80px; height: 80px; }
    .sps_section { padding-left: 0; }
    #sps_sch, #sqa_sch { flex-direction: column; align-items: stretch; }
    #sps_sch .sch_wr, #sqa_sch .sch_wr { width: 100%; }
    #sps_sch .sch_input, #sqa_sch .sch_input { width: 100%; }
    .review_tp_cnt { padding: 1.25rem; }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .mh-item-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    .mh-item-wrap { padding: 1rem; }
    .mh-item-title { font-size: 1.3rem; }
    .mh-action-btns {
        flex-wrap: wrap;
    }
    .mh-btn-buy { flex: 1 1 100%; }
    .mh-btn-cart, .mh-btn-wish { flex: 1; }
    .mh-tab-nav {
        flex-wrap: wrap;
    }
    .mh-tab-nav li { flex: 1 1 50%; }
    .mh-tab-nav li button { border-bottom: 1px solid #ddd; font-size: 0.75rem; padding: 0.75rem; }
    .mh-shipping-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .mh-tabs-section { padding: 0 1rem; }
    .mh-related-inner { padding: 0 1rem; }
    .mh-gallery-thumbs li { width: 56px; height: 56px; }
}

@media (max-width: 480px) {
    .mh-price { font-size: 1.1rem !important; }
    .mh-price-table th { width: 90px; font-size: 0.75rem; }
    .mh-btn-buy, .mh-btn-cart, .mh-btn-wish { padding: 0.8rem; font-size: 0.75rem; }
}
