/* ==============================
   Product Detail Page
   Kadence Child
============================== */


/*Breadcrumbs*/
.product-breadcrumb-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 0;
}

.product-breadcrumb-label {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1d;
    letter-spacing: 0.5px;
}

.product-breadcrumb {
    font-size: 13.6px;
    color: #242d2d;
    margin: 12px 0;
}


/*Section 1: Gallery + Info*/
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.product-gallery-col {
    align-self: start;
}

.product-fallback-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.product-title {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1d;
    line-height: 1.3;
}

.product-short-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-inquiry-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #1a1a1d;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.product-inquiry-btn:hover {
    background: #ffc439;
}

.product-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 18px;
}

.product-social-link {
    width: 28px;
    height: 28px;
    border-radius: 25%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
}

.product-social-link svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
    display: block;
}

/* 默认背景色 */
.product-social-link.facebook {
    background: #1877f2;
    border: 1px solid #1877f2;
}

.product-social-link.youtube {
    background: #ff0000;
    border: 1px solid #ff0000;
}

.product-social-link.pinterest {
    background: #e60023;
    border: 1px solid #e60023;
}

.product-social-link.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    border: 1px solid transparent;
}

/* hover 不变色，只上浮 */
.product-social-link:hover {
    transform: translateY(-2px);
    color: #fff;
}

/* 移动端 */
@media (max-width: 768px) {
    .product-social-links {
        margin: 18px 0 16px;
    }

    .product-social-link {
        width: 36px;
        height: 36px;
    }

    .product-social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* ===== Fix modal open layout shift ===== */

/* 始终保留滚动条空间，避免打开弹窗时页面宽度变化 */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

/* 弹窗打开时只禁止滚动，不改变页面宽度 */
body.product-modal-open {
    overflow: hidden;
}

/* 防止弹窗打开时主题容器或导航产生 transform 缩放 */
body.product-modal-open,
body.product-modal-open .site,
body.product-modal-open .site-header,
body.product-modal-open .content-container,
body.product-modal-open .content-area {
    transform: none !important;
}
/*Section 2: Table*/
.product-table-section {
    margin-bottom: 48px;
}


/*Section 3: Feature + Video*/
.product-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.product-feature-text {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 16px;
}

.product-feature-btn {
    display: inline-block;
    padding: 10px 24px;
    color: #fff;
	background:#1a1a1d;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.product-feature-btn:hover {
    background: #ffc439;
    color: #fff;
}

.product-video {
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
}

.product-video iframe {
    width: 100%;
    height: 100%;
}

/*Section 4: Detail*/
.product-detail-section {
    margin-bottom: 48px;
}

.product-detail-text {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
}


/*Section 5: Inspiration*/
.product-inspiration {
    margin-bottom: 48px;
}

.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.inspiration-item {
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    overflow: hidden;
}

.inspiration-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.inspiration-item img:hover {
    transform: scale(1.05);
}


/*Section 6: FAQs*/
.product-faqs-section {
    margin-bottom: 48px;
}

.product-faqs-text {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
}

.product-faqs-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 8px;
    color: #1a1a1d;
}


/*Shared*/
.section-heading {
    margin: 0 0 20px;
}


/*Modal*/
.product-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.product-modal.open {
    opacity: 1;
    visibility: visible;
}

.product-modal-inner {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.product-modal-inner h3 {
    margin-top: 0;
    font-size: 20px;
}

.product-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.product-modal-close:hover {
    color: #333;
}

body.product-modal-open {
    overflow: hidden;
}


/*Responsive*/
@media (max-width: 768px) {
    .product-breadcrumb-wrap {
        padding: 14px 0;
    }

    .product-breadcrumb-label {
        font-size: 22px;
    }

    .product-hero,
    .product-feature-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-title {
        font-size: 22px;
    }

    .product-inquiry-btn {
        width: 100%;
        text-align: center;
    }

    .product-video {
        aspect-ratio: 4 / 3;
    }

    .inspiration-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
/* ===== Section 8: You Might Like ===== */

.product-you-might-like {
    margin-top: 70px;
    margin-bottom: 30px;
}

.you-might-like-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.you-might-like-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.you-might-like-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.you-might-like-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.you-might-like-card:hover .you-might-like-img {
    transform: scale(1.04);
}

.you-might-like-title {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
    text-align: center;
    color: #111;
}

.you-might-like-card:hover .you-might-like-title {
    color: #000;
    text-decoration: none;
}

.you-might-like-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    background: #eee;
}

/* Tablet */
@media (max-width: 1024px) {
    .you-might-like-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .product-you-might-like {
        margin-top: 50px;
    }

    .you-might-like-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .you-might-like-title {
        font-size: 14px;
    }
}