﻿@charset "utf-8";

/* ==========================================================================
   Conran Style Product Pages
   (List, Detail, Options, Tabs)
   ========================================================================== */

/* ----------------------------------------------------
   1. Product List (Grid)
   ---------------------------------------------------- */
.prod-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.625rem;
    padding: 0;
    list-style: none;
}

.sct_li {
    padding: 0 0.625rem;
    margin-bottom: 3.125rem;
    box-sizing: border-box;
}

/* Responsive Columns */
.col-row-4 .sct_li {
    width: 25%;
}

.col-row-3 .sct_li {
    width: 33.333%;
}

.col-row-2 .sct_li {
    width: 50%;
}

@media (max-width: 64rem) {
    .col-row-4 .sct_li {
        width: 33.333%;
    }
}

@media (max-width: 48rem) {

    .col-row-4 .sct_li,
    .col-row-3 .sct_li {
        width: 50%;
    }
}

@media (max-width: 30rem) {

    .col-row-4 .sct_li,
    .col-row-3 .sct_li,
    .col-row-2 .sct_li {
        width: 100%;
    }
}

/* Card Style */
.prod-card {
    display: block;
    text-decoration: none;
}

.prod-card .thumb {
    position: relative;
    overflow: hidden;
    background: #f4f4f4;
    margin-bottom: 1.25rem;
    aspect-ratio: 1 / 1;
}

.prod-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.prod-card:hover .thumb img {
    transform: scale(1.05);
}

.prod-card .info {
    text-align: left;
}

.prod-card .name {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--conran-black, #1a1a1a);
    margin-bottom: 0.3125rem;
    line-height: 1.4;
}

.prod-card .size {
    display: block;
    font-size: 0.8125rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.prod-card .price {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--conran-black, #1a1a1a);
}


/* ----------------------------------------------------
   2. Product Detail (View)
   ---------------------------------------------------- */
#sit_ov_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 3.75rem;
    margin-top: 2.5rem;
    margin-bottom: 5rem;
    align-items: flex-start;
}

/* Image Section */
#sit_pvi {
    flex: 4;
    /* 40% */
    min-width: 25rem;
}

#sit_pvi_big {
    background: #f9f9f9;
    margin-bottom: 0.625rem;
    border: 1px solid #eee;
}

#sit_pvi_big a {
    display: block;
    width: 100%;
}

#sit_pvi_big img {
    width: 100%;
    height: auto;
    display: block;
}

#sit_pvi_thumb {
    display: flex;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

#sit_pvi_thumb li {
    width: 4.375rem;
    height: 4.375rem;
}

#sit_pvi_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #eee;
    cursor: pointer;
}

#sit_pvi_thumb img:hover {
    border-color: var(--conran-blue);
}

/* Info Section */
#sit_ov {
    flex: 6;
    /* 60% */
    min-width: 31.25rem;
}

#sit_title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--conran-black);
    margin-bottom: 0.625rem;
    line-height: 1.3;
}

#sit_desc {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 1.875rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.25rem;
}

.sit_ov_tbl {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5625rem;
}

.sit_ov_tbl th {
    text-align: left;
    padding: 0.5rem 0;
    color: #555;
    font-weight: 500;
    width: 6.25rem;
}

.sit_ov_tbl td {
    padding: 0.5rem 0;
    color: #333;
}

/* Option Sections */
.sit_option {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    padding: 0.9375rem;
    margin-bottom: 0.9375rem;
}

.sit_option h3 {
    font-size: 0.875rem;
    margin-bottom: 0.625rem;
}

/* Selected Options */
#sit_sel_option {
    background: #fff;
    border: 1px solid var(--conran-blue);
    padding: 0.9375rem;
    margin: 1.25rem 0;
}

.sit_opt_list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.625rem;
    margin-bottom: 0.625rem;
}

.sit_opt_list:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.opt_count button {
    background: #fff;
    border: 1px solid #ddd;
    width: 1.5625rem;
    height: 1.5625rem;
    cursor: pointer;
}

.opt_count input {
    width: 2.5rem;
    text-align: center;
    border: 1px solid #ddd;
    height: 1.5625rem;
    margin: 0 0.3125rem;
}

/* Action Buttons */
#sit_ov_btn {
    margin-top: 1.875rem;
}

.custom-design-buttons {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 0.9375rem;
}

.sit_btn_design {
    flex: 1;
    height: 3.4375rem;
    border: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: #333;
    transition: opacity 0.2s;
}

.sit_btn_design:hover {
    opacity: 0.9;
}

.sit_btn_design.ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sit_btn_design.green {
    background: #27ae60;
}

.sit_btn_cart,
.sit_btn_buy {
    width: 48%;
    height: 3.4375rem;
    font-size: 1rem;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    float: left;
}

.sit_btn_cart {
    background: #fff;
    border: 1px solid var(--conran-black);
    color: var(--conran-black);
    margin-right: 4%;
}

.sit_btn_buy {
    background: var(--conran-blue);
    color: #fff;
}

.sit_btn_wish {
    float: right;
    width: 3.4375rem;
    height: 3.4375rem;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #999;
    margin-left: 0.625rem;
    /* Optional if layout needs adjustment */
}

/* Clearing floats if necessary, though flex is better. G5 structure relies on float here slightly. */


/* ----------------------------------------------------
   3. Tabs (Info, Review, QA)
   ---------------------------------------------------- */
#sit_inf {
    margin-top: 5rem;
}

.tab_tit {
    display: flex;
    border-bottom: 2px solid var(--conran-black);
    padding: 0;
    margin-bottom: 1.875rem;
    list-style: none;
}

.tab_tit li {
    flex: 1;
}

.tab_tit li button {
    width: 100%;
    padding: 0.9375rem 0;
    border: 1px solid #ddd;
    border-bottom: 0;
    background: #f9f9f9;
    font-size: 0.9375rem;
    color: #666;
    cursor: pointer;
    font-family: inherit;
}

.tab_tit li.selected button {
    background: var(--conran-black);
    color: #fff;
    border-color: var(--conran-black);
}

@media (max-width: 48rem) {
    #sit_ov_wrap {
        flex-direction: column !important;
        gap: 1.5rem;
    }

    #sit_pvi,
    #sit_ov {
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }

    /* 상세설명 '칼국수 현상' 해결 - 내부 테이블 및 플로팅 해제 */
    #sit_inf_explan_con table {
        width: 100% !important;
        table-layout: fixed;
    }

    #sit_inf_explan_con td,
    #sit_inf_explan_con th {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    #sit_inf_explan_con img {
        width: 100% !important;
        height: auto !important;
        display: block;
        margin: 10px 0;
    }

    .tab_tit {
        flex-wrap: wrap;
    }

    .tab_tit li {
        flex: none;
        width: 33.333%;
    }

    .tab_tit li button {
        font-size: 0.8125rem;
        padding: 0.625rem 0;
    }
}

/* ----------------------------------------------------
   4. Policy Content (Shipping, Return, Payment)
   ---------------------------------------------------- */
.policy-content {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    color: #4a5568;
}

.policy-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #edf2f7;
}

.policy-content h3:first-child {
    margin-top: 0;
}

.policy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-list>li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.policy-list>li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--conran-blue);
    font-weight: bold;
}

.sub-policy-list {
    list-style: none;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: #f8fafc;
    border-radius: 6px;
}

.sub-policy-list li {
    margin-bottom: 0.5rem;
}

.sub-policy-list li:last-child {
    margin-bottom: 0;
}

.policy-highlight {
    font-weight: 700;
    color: #e11d48;
    margin-bottom: 1rem;
}

.unstyled-list li::before {
    display: none;
}

.unstyled-list li {
    padding-left: 0;
}

@media (max-width: 48rem) {
    .policy-content {
        padding: 1rem;
    }

    .policy-content .sit_ov_tbl th {
        width: 100% !important;
        display: block;
        padding-bottom: 0;
    }

    .policy-content .sit_ov_tbl td {
        width: 100% !important;
        display: block;
        padding-top: 0.25rem;
    }
}