@charset "utf-8";

/* =========================================================
   Product Page
========================================================= */

.productPage {
    width: 100%;
}

.productPage__hero {
    padding: 60px 0 10px;
}

.productPage__inner {
    width: min(1024px, 100%);
    margin: 0 auto;
    padding: 0 30px;
}

.productPage__topGrid {
    display: grid;
    grid-template-columns: 1fr 1.36fr;
    gap: 40px;
    align-items: start;
}

.productPage__topGrid > * {
    min-width: 0;
}

/* =========================================================
   Gallery
========================================================= */

.productGallery__mainSwiper {
    width: 100%;
    overflow: hidden;
}

.productGallery__main {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f2f2f2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.productGallery__mainImg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.productGallery__pagination {
    display: none;
    margin-top: 10px;
}

.productGallery__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    opacity: 1;
    background: #D9D9D9;
}
.productGallery__pagination .swiper-pagination-bullet-active {
    background: #000;
}

.productGallery__thumbSwiper {
    margin-top: 16px;
}

.productGallery__thumbSwiper .swiper-slide {
    width: calc((100% - 40px) / 5);
}

.productGallery__thumb {
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.productGallery__thumb.is-active {
    border-color: var(--picky-orange-light);
}

.productGallery__thumbImg {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

/* =========================================================
   Info
========================================================= */

.productInfo__title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.productInfo__price {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.productInfo__price #productPriceValue {
    font-weight: 800;
}

.productInfo__tax {
    font-size: 1.2rem;
}

.productInfo__stock {
    font-size: 2rem;
    font-weight: 600;
    color: var(--picky-green);
    margin-bottom: 16px;
}

.productInfo__stock.is-low {
    color: var(--picky-orange);
}

.productInfo__stock.is-out {
    color: #D60000;
}

.productInfo__section {
    margin: 14px 0;
}

.productInfo__label {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.variantList {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.variantChip {
    color: var(--text-color-base);
    border: 1px solid #CCC;
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    display: grid;
    gap: 4px;
}

.variantChip.is-active {
    border-color: var(--picky-orange-light);
}

.variantChip.is-soldout {
    opacity: .6;
}

.variantChip__label {
    font-size: 1.4rem;
    white-space: nowrap;
}

.variantChip__price {
    font-size: 1.4rem;
    font-weight: 700;
}

.productInfo__buy {
    margin-top: 14px;
    border-top: 1px solid #CCC;
    padding-top: 14px;
}

.productInfo__qtyRow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.productInfo__qtyLabel {
    font-size: 1.4rem;
}

.productInfo__qty {
    width: 80px;
    height: 34px;
    font-size: 1.4rem;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.productInfo__qty {
    width: 80px;
    height: 34px;
    font-size: 1.4rem;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.productInfo__qty:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.productInfo__actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.productInfo__btn {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    display: block;
}

.productInfo__btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.productInfo__btn--cart {
    border: none;
    background: var(--picky-orange-light);
    color: #fff;
}

.productInfo__btn--buyNow {
    border: 1px solid var(--picky-orange-light);
    background: #fff;
    color: var(--picky-orange-light);
}

.productInfo__note {
    margin-top: 10px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.productInfo__note--soldout {
    color: #d60000;
    font-weight: 700;
}

.productInfo__meta {
    margin-top: 14px;
    font-size: 1.4rem;
    color: #333;
    display: grid;
    gap: 2px;
}

/* =========================================================
   Sections / Tables
========================================================= */

.productPage__section {
    padding: 30px 0;
}

.productPage__sectionTitle {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 14px;
}

.productPage__text {
    font-size: 1.6rem;
    line-height: 2.0;
    color: #333;
}

.infoTableWrap {
    width: 100%;
    overflow-x: auto;
}

.infoTable {
    width: 100%;
    border-collapse: collapse;
}

.infoTable th,
.infoTable td {
    border: 1px solid #DAE0E0;
    padding: 12px 20px;
    font-size: 1.4rem;
    line-height: 1.4;
}

.infoTable th {
    width: 30%;
    background: #F7F7F7;
    font-weight: 600;
}

/* ===============================================
 *
 * メディアクエリ タブレット縦 (768px ~ 1023px)
 *
 * ============================================ */

@media (max-width: 1023px) {
    .productPage__hero {
        padding: 40px 0 10px;
    }
    .productInfo__actions {
        flex-direction: column;
    }

    .productPage__topGrid {
        gap: 26px;
    }

    .productInfo__title {
        font-size: 2rem;
    }

    .productInfo__price {
        font-size: 2.2rem;
    }

    .variantList {
        grid-template-columns: repeat(4, minmax(0, 98.5px));
    }
}

/* ===============================================
 *
 * メディアクエリ SP標準 (480px ~ 767px)
 *
 * ============================================ */

@media (max-width: 767px) {
    .productPage__hero {
        padding: 0 0 10px;
    }

    .productPage__inner {
        width: min(480px, 100%);
        padding: 0 15px;
    }

    .productPage__topGrid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .productGallery__thumbSwiper {
        display: none;
    }

    .productGallery__pagination {
        display: block;
    }

    .productInfo__title {
        font-size: 1.6rem;
    }

    .productInfo__price {
        font-size: 1.8rem;
    }

    .productInfo__stock {
        font-size: 1.6rem;
    }

    .variantList {
        grid-template-columns: repeat(3, minmax(0, 98.5px));
        gap: 8px;
    }

    .variantChip {
        min-width: 0;
        flex: 1 1 auto;
    }

    .productInfo__buy {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .productInfo__qtyRow {
        margin-bottom: 20px;
    }

    .productInfo__meta {
        font-size: 1.3rem;
    }

    .productPage__sectionTitle {
        font-size: 1.8rem;
    }

    .productPage__text {
        font-size: 1.5rem;
    }
}

/* ===============================================
 *
 * メディアクエリ SP ( ~ 479px)
 *
 * ============================================ */

@media (max-width: 479px) {
    .infoTable,
    .infoTable tbody,
    .infoTable tr {
        display: block;
    }

    .infoTable th,
    .infoTable td {
        display: block;
        width: 100%;
        padding: 10px 14px;
        text-align: center;
    }
}