.sub-header {
    background-color: #1877D8;
}

.product-detail {
    position: relative;
    width: 100%;
    padding: 110px 0 0;
    background-color: #F3F4F9;
}

.product-detail::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100vh;
    background-image: url("../img/sub-product-detail-bg02.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center right;
    z-index: 0;
}

.product-info {
    max-width: 1320px;
    padding-bottom: 110px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
}

.product-info:has(.product-image[src]:not([src=""])) {
    min-height: 650px;
}

.image-wrapper:has(.product-image[src=""]) {
    display: none;
}

.product-texts {
    z-index: 2;
}

.product-detail .product-category {
    display: inline-block;
    background: #5E656D;
    color: white;
    font-size: var(--font-md);
    font-weight: 700;
    line-height: 27px;
    padding: 3px 10px;
    margin-bottom: 20px;
}

.product-detail .product-name {
    max-width: 700px;
    color: #1176DD;
    font-size: 40px;
    font-weight: 700;
    line-height: 52px;
}

.image-wrapper {
    position: absolute;
    right: 200px;
    bottom: 20px;
    z-index: 1;
}

.product-image {
    max-width: 800px;
    min-height: 450px;
    height: auto;
}

.product-overview {
    width: 100%;
    background: white;
    padding: 30px 0 180px;
    max-width: 1140px;
    margin: 0 auto;
}

.section-title {
    padding-bottom: 10px;
    margin-top: 60px;
    margin-bottom: 20px;
    border-bottom: 2px solid #4F81BE;
    color: #4F81BE;
    font-size: var(--font-2xl);
    font-weight: 700;
}

.section-title:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.text:first-of-type {
    font-size: 30px;
}

.product-overview p,
.product-overview li {
    font-family: 'Times New Roman', Times, serif;
    color: #3E3A39;
    font-size: var(--font-2xl);
    font-weight: 500;
}

.product-overview ul {
    padding-left: 20px;
}

.product-overview li {
    list-style-type: disc;
    line-height: 1.8;
}

.text+.text {
    margin-top: 30px;
}

.ordering-block+.ordering-block {
    margin-top: 16px;
}

.ordering-caption {
    margin: 0 0 8px;
}

.ordering-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.exp-block {
    margin: 16px 0 20px;
    --maxw: 950px;
    --maxh: 10px;
}

.exp-gallery {
    display: grid;
    gap: 12px;
    justify-items: center;
    align-items: center;
    grid-template-columns: repeat(var(--cols, 1), 1fr);
}

.exp-item {
    background: white;
    padding: 8px;
    width: min(100%, var(--maxw));
}

.exp-item img {
    width: 100%;
    height: auto;
    display: block;
    max-height: var(--img-max-h, none);
    object-fit: contain;
}

.exp-gallery:not(:has(> .exp-item:nth-child(2))) {
    --img-max-h: 520px;
}

.exp-caption {
    font-size: 14px;
    color: #4B5563;
    margin-top: 6px;
    text-align: center;
}

.exp-block.side .exp-side-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: center;
}

.exp-block.side .exp-media .exp-gallery {
    display: grid;
    gap: 12px;
    justify-items: center;
    grid-template-columns: repeat(var(--cols, 1), 1fr);
}

.exp-block.side .exp-desc {
    font-family: 'Times New Roman', Times, serif;
    color: #3E3A39;
    font-size: var(--font-2xl);
    line-height: 1.6;
}

@media (max-width:1280px) {
    .exp-block.side .exp-side-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width:1024px) {

    .content {
        --gutter: 24px;
    }

    .product-detail {
        padding-top: 90px;
    }

    .product-detail::after {
        display: none;
    }

    .product-info:has(.product-image[src]:not([src=""])) {
        min-height: auto;
    }

    .product-info {
        max-width: none;
        width: 100%;
        margin: 0;
        padding-bottom: 40px;
        padding-inline: var(--gutter);
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .image-wrapper {
        position: static;
        right: auto;
        bottom: auto;
        margin: 16px auto 0;
        text-align: center;
    }

    .product-image {
        width: min(90%, 520px);
        height: auto;
    }

    .product-overview {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 24px var(--gutter) 120px;
    }

    .section-title {
        margin-top: 48px;
        font-size: 22px;
    }

    .exp-gallery:not(:has(> .exp-item:nth-child(2))) {
        --maxw: 520px;
    }
}

@media (max-width:768px) {

    .product-info {
        padding-bottom: 20px;
    }

    .content {
        --gutter: 16px;
    }

    .product-detail {
        padding-top: 72px;
    }

    .product-detail .product-category {
        font-size: 14px;
        line-height: 22px;
    }

    .product-detail .product-name {
        font-size: 28px;
        line-height: 36px;
        max-width: 100%;
    }

    .product-overview {
        padding: 20px var(--gutter) 80px;
    }

    .product-overview p,
    .product-overview li {
        line-height: 1.5;
        font-size: 16px;
    }

    .text:first-of-type {
        font-size: 18px;
    }

    .ordering-image {
        margin-top: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px;
        border: 1px solid #e9edf5;
        border-radius: 10px;
        background: #fafbff;
    }

    .ordering-image::before {
        content: 'Swipe to view table →';
        display: block;
        font-size: 12px;
        color: #6c7583;
        margin: 0 0 6px 2px;
    }

    .ordering-image img {
        max-width: none;
        width: 960px;
        height: auto;
        display: block;
    }

    .exp-gallery {
        grid-template-columns: 1fr;
    }

    .exp-block.side .exp-desc {
        font-size: 16px;
        line-height: 1.5;
    }

    .exp-gallery:not(:has(> .exp-item:nth-child(2))) {
        --maxw: 340px;
    }

    .exp-block.side .exp-media .exp-gallery {
        --maxw: 340px;
    }

    .exp-item {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width:480px) {
    .content {
        --gutter: 14px;
    }

    .product-detail {
        padding-top: 56px;
    }

    .product-detail .product-name {
        font-size: 24px;
        line-height: 30px;
    }

    .product-image {
        width: 100%;
        max-width: 360px;
        min-height: auto;
        height: auto;
    }

    .product-overview {
        padding: 16px var(--gutter) 60px;
    }

    .section-title {
        font-size: 18px;
    }

    .text+.text {
        margin-top: 10px;
    }

    .ordering-image img {
        width: 800px;
    }
}