﻿/* detail-navi */
.detail-navi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    flex-wrap: wrap;
}

.nav-link.supp {
    font-size: 18px;
    font-weight: bold;
    color: var(--c-accent);
}

/* detail-content */
.detail-content {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap:10px;
}

    /* detail-content > img-gallery */
    .detail-content .img-gallery {
        display: flex;
        flex-direction: column;
        width: 500px;
        gap:10px;
    }

        .detail-content .img-gallery .main {
            width: 100%;
            display: flex;
        }

            .detail-content .img-gallery .main div.img {
                width: 100%;
                height: 100%;
                border-radius: 15px;
                padding: 10px;
                box-shadow: 2px 2px 10px rgba(0, 0, 0, 5%);
                background-color: white;
            }

                .detail-content .img-gallery .main div.img img {
                    width: 100%;
                    aspect-ratio: 1/1;
                    object-fit: cover;
                }

        .detail-content .img-gallery .thumbs {
            display: flex;
            flex-flow: wrap;
            justify-content: center;
            padding: 5px;
            gap: 5px;
            background-color: white;
            border: 1px solid whitesmoke;
            border-radius: 15px;
        }

            .detail-content .img-gallery .thumbs .thumb {
                width: 90px;
                height: 90px;
                border-radius: 8px;
                box-shadow: 2px 2px 10px rgba(0, 0, 0, 5%);
                overflow: hidden;
                cursor: pointer;
                border: 2px solid transparent;
                transition: all 0.2s;
            }

                .detail-content .img-gallery .thumbs .thumb:hover {
                    transform: translateY(-4px);
                }

                .detail-content .img-gallery .thumbs .thumb.active {
                    border: 2px solid silver;
                }

            .detail-content .img-gallery .thumbs img {
                width: 100%;
                aspect-ratio: 1/1;
                object-fit: cover;
            }

    /* detail-content > opt-order */
    .detail-content .opt-order {
        flex: 1;
        width: 100%;
        height: 100%;
        border-radius: 15px;
        padding: 10px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 5%);
        background-color: white;
    }

        .detail-content .opt-order .title {
            display: flex;
            height: 50px;
            justify-content: space-between;
            align-items: center;
            padding: 0px 10px;
            border-bottom: 2px solid whitesmoke;
            /* border-bottom: 2px solid darkcyan; */
        }

            .detail-content .opt-order .title .itemnm {
                font-size: 18px;
                font-weight: bold;
                color: var(--c-accent);
            }


            .detail-content .opt-order .item-detail {
                display: flex;
                width: 100%;
                gap: 10px;
            }


        .detail-content .opt-order .item-order {
            flex: 1;
            padding: 10px;
            border-radius: 15px;
            background-color: white;
        }

            .detail-content .opt-order .item-order .header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding-bottom: 20px;
            }

                .detail-content .opt-order .item-order .header .title {
                    font-size: 24px;
                    font-weight: bold;
                    padding-left: 10px;
                    color: var(--c-black);
                }

                .detail-content .opt-order .item-order .header .itemcd {
                    font-size: 14px;
                    padding-right: 10px;
                    color: #999;
                }

        /* detail-content > opt-order > opt */
        .detail-content .opt-order .opt {
            display: flex;
            gap: 10px;
            overflow-wrap: break-word;
            flex-wrap: wrap;
            margin-top: 10px;
        }
                
        /* detail-content > opt-order > cart-list */
        .detail-content .opt-order .cart-list {
            margin: 10px 0;
            padding: 12px 16px;
            background: #f1f5f9;
            border-radius: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

            .detail-content .opt-order .cart-list > div {
                display: flex;
                align-items: center;
            }

            .detail-content .opt-order .cart-list .label {
                font-size: 16px;
                font-weight: bold;
                color: var(--c-black);
            }

            .detail-content .opt-order .cart-list .price {
                font-size: 16px;
                font-weight: 800;
                color: orangered;
            }

/* detail-image */
.detail-images {
    display: flex;
    margin-top: 10px;
    border-radius: 15px;
    background-color: white;
    box-shadow: 2px 2px 10px rgb(0 0 0 / 5%);
    padding-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

    .detail-images .title {
        text-align: center;
        font-weight: bold;
        margin-top: 10px;
        font-size: 18px;
        width: 100%;
        padding: 15px 0px;
        border-bottom: 2px solid darkcyan;
    }

    .detail-images img.dimg {
        width: 90%;
    }

    .detail-images div.oimg {
        width: calc(50% - 30px);
    }

        .detail-images div.oimg div.optnm {
            display: flex;
            justify-content: space-around;
            text-align: center;
            padding: 8px 0px;
            font-size: 16px;
            background-color: whitesmoke;
            border: 1px solid silver;
            border-bottom: none;
        }

            .detail-images div.oimg div.optnm div {
                text-align: center;
            }

        .detail-images div.oimg img {
            width: 100%;
            border: 1px solid silver;
        }



/* Elements & Events */
.TO-CART:hover {
    color: var(--c-accent);
    font-size: 24px !important;
    padding: 0px;
}

.DEL-CART:hover {
    font-size: 20px !important;
}

.opt-button {
    padding: 10px;
    border: 1px solid silver;
    min-width: 100px;
    max-width: 200px;
    cursor: pointer;
    text-align: center;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgb(0 0 0 / 5%);
    background-color: whitesmoke;
}
    .opt-button:hover {
        font-weight: bold;
        color: var(--c-accent);
        transform: translateY(-3px);
    }
    .opt-button::after {
        content: "";
        position: absolute;
        left: 10px;
        bottom: 5px;
        width: 0;
        height: 2px;
        background: var( --c-accent);
        transition: width 0.3s;
    }

    .opt-button:hover::after {
        width: calc(100% - 20px);
    }

    .opt-button.select {
        background-color: var(--c-accent);
        color: white;
    }

@media (max-width: 800px) {   
    .item-detail {
        flex-direction: column;
    }
        .item-detail .img-gallery {
            width: 100%;
        }

        .item-detail .item-order {
            width: 100%;
            padding: 10px;
        }
}