/*
 * Coordeble Product Front v1
 * 商品詳細専用
 */

/* PC：左画像／右購入情報 */
@media (min-width: 783px) {

    body.single-product
    .woocommerce div.product div.images {
        float: left;
        width: 47%;
        margin-right: 0;
    }

    body.single-product
    .woocommerce div.product div.summary {
        float: right;
        width: 47%;
        margin-right: 0;
        margin-left: 0;
    }

}

/* 商品画像 */
body.single-product
.woocommerce div.product div.images img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 追加セクション全体 */
body.single-product .cd-product-sections {
    clear: both;
    width: 100%;
    margin-top: 36px;
    color: inherit;
}

/* 各セクション */
body.single-product .cd-product-section {
    width: 100%;
    box-sizing: border-box;
    padding: 25px 0;
    border-top: 1px solid rgba(128,128,128,.3);
}

body.single-product
.cd-product-section-title {
    margin: 0 0 16px;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.5;
    font-weight: 700;
    color: inherit;
}

body.single-product
.cd-product-section-body {
    font-size: 15px;
    line-height: 1.9;
    color: inherit;
    overflow-wrap: anywhere;
}

body.single-product
.cd-product-section-body p {
    margin: 0 0 1em;
}

body.single-product
.cd-product-section-body p:last-child {
    margin-bottom: 0;
}

/* 画像＋テキスト */
body.single-product
.cd-product-section-image {
    width: 100%;
    margin: 0 0 18px;
    overflow: hidden;
    border-radius: 10px;
}

body.single-product
.cd-product-section-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* FAQ */
body.single-product
.cd-product-faq-details {
    border: 1px solid rgba(128,128,128,.3);
    border-radius: 10px;
    overflow: hidden;
}

body.single-product
.cd-product-faq-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 18px;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    color: inherit;
}

body.single-product
.cd-product-faq-details summary::-webkit-details-marker {
    display: none;
}

body.single-product
.cd-product-faq-icon {
    flex: 0 0 auto;
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
}

body.single-product
.cd-product-faq-details[open]
.cd-product-faq-icon {
    transform: rotate(45deg);
}

body.single-product
.cd-product-faq-answer {
    padding: 0 18px 20px;
    font-size: 14px;
    line-height: 1.9;
    color: inherit;
}

body.single-product
.cd-product-faq-answer p:last-child {
    margin-bottom: 0;
}

body.single-product
.cd-product-faq-details summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

/* 標準の商品タブ・関連商品は2列の下へ */
body.single-product
.woocommerce div.product .woocommerce-tabs,
body.single-product
.woocommerce div.product .related,
body.single-product
.woocommerce div.product .upsells {
    clear: both;
}

/* スマホ：縦並び */
@media (max-width: 782px) {

    body.single-product
    .woocommerce div.product div.images,
    body.single-product
    .woocommerce div.product div.summary {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    body.single-product
    .cd-product-sections {
        margin-top: 28px;
    }

    body.single-product
    .cd-product-section {
        padding: 22px 0;
    }

    body.single-product
    .cd-product-section-body {
        font-size: 14px;
    }
}



/* Coordeble Product Thumbnail Centering v1
   サムネイル列を中央寄せ
---------------------------------------- */
body.single-product .flex-control-nav.flex-control-thumbs,
body.single-product .woocommerce-product-gallery__thumbnails,
body.single-product .cd-product-gallery-thumbs,
body.single-product .coordeble-product-thumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 16px auto 0;
    padding: 0 8px;
    list-style: none;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

body.single-product .flex-control-nav.flex-control-thumbs::-webkit-scrollbar,
body.single-product .woocommerce-product-gallery__thumbnails::-webkit-scrollbar,
body.single-product .cd-product-gallery-thumbs::-webkit-scrollbar,
body.single-product .coordeble-product-thumbs::-webkit-scrollbar {
    display: none;
}

body.single-product .flex-control-nav.flex-control-thumbs li,
body.single-product .woocommerce-product-gallery__thumbnails > *,
body.single-product .cd-product-gallery-thumbs > *,
body.single-product .coordeble-product-thumbs > * {
    flex: 0 0 auto;
}

