
.single-product-page {
    padding: 70px 0 90px;
    background: #fff;
}

.single-product-top {
    display: grid;
    grid-template-columns: 48% minmax(0, 1fr);
    gap: 52px;
    align-items: flex-start;
    margin-bottom: 80px;
}


/* =========================
   Product Gallery
========================= */
.single-product-gallery {
    width: 100%;
    min-width: 0;
}

.product-gallery-main {
    position: relative;
    width: 100%;
    border: 1px solid #eee;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 18px;
    box-shadow: 0 16px 42px rgba(0,0,0,0.05);
    cursor: zoom-in;
}

.product-gallery-main img {
    width: 100%;
    display: block;
    transition: transform 0.18s ease;
    transform-origin: center center;
}

.product-gallery-main.is-zooming img {
    transform: scale(1.85);
}

.product-gallery-zoom-icon {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 5;
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    background: rgba(255,255,255,0.95);
    color: #ea0b13;
    border-radius: 50%;
    border: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: all 0.25s ease;
}

.product-gallery-zoom-icon:hover {
    background: #ea0b13;
    color: #fff;
    transform: scale(1.06);
}

.product-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #222;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    opacity: 0;
    transition: all 0.25s ease;
}

.product-gallery-prev {
    left: 18px;
}

.product-gallery-next {
    right: 18px;
}

.product-gallery-main:hover .product-gallery-arrow {
    opacity: 1;
}

.product-gallery-arrow:hover {
    background: #ea0b13;
    color: #fff;
}

.product-gallery-thumb-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-gallery-thumbs {
    flex: 1;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2px 2px 8px;
}

.product-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 999px;
}

.product-gallery-thumbs::-webkit-scrollbar-track {
    background: #f7f7f7;
    border-radius: 999px;
}

.product-gallery-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: all 0.25s ease;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
    border-color: #ea0b13;
    box-shadow: 0 0 0 2px rgba(234, 11, 19, 0.12);
}

.product-gallery-thumb-arrow {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f7f7f7;
    color: #333;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.product-gallery-thumb-arrow:hover {
    background: #ea0b13;
    color: #fff;
}


/* =========================
   Product Info
========================= */
.single-product-info {
    padding-top: 8px;
}

.single-product-info h1 {
    font-size: 42px;
    line-height: 1.32;
    color: #111;
    margin: 0 0 18px;
}

.single-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #777;
    font-size: 14px;
    margin-bottom: 22px;
}

.single-product-meta span {
    display: inline-flex;
    align-items: center;
}

.single-product-meta i {
    color: #ea0b13;
    margin-right: 7px;
}

.single-product-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.single-product-share span {
    color: #333;
    font-weight: 600;
    margin-right: 6px;
}

.single-product-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #f7f7f7;
    color: #333;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.single-product-share a:hover {
    background: #ea0b13;
    color: #fff;
    transform: translateY(-2px);
}

.single-product-extend {
    color: #555;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 34px;
}

.single-product-extend p {
    margin-bottom: 14px;
}

.single-product-actions {
    display: flex;
    gap: 14px;
}

.single-product-inquiry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 50px;
    padding: 0 28px;
    background: #ea0b13;
    color: #fff;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.single-product-inquiry i {
    margin-right: 8px;
}

.single-product-inquiry:hover {
    background: #c80008;
    color: #fff;
    transform: translateY(-2px);
}


/* =========================
   Section Title
========================= */
.single-product-section-title {
    margin-bottom: 32px;
}

.single-product-section-title.center {
    text-align: center;
}

.single-product-section-title span {
    display: inline-block;
    color: #ea0b13;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.single-product-section-title h2 {
    font-size: 34px;
    line-height: 1.3;
    color: #111;
    margin: 0;
}


/* =========================
   Product Detail Content
========================= */
.single-product-detail {
    padding: 56px 0 70px;
    border-top: 1px solid #eee;
}

.single-product-content {
    color: #444;
    font-size: 16px;
    line-height: 1.95;
}

.single-product-content p {
    margin-bottom: 18px;
}

.single-product-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.single-product-content h2,
.single-product-content h3,
.single-product-content h4,
.single-product-content h5 {
    color: #111;
    line-height: 1.35;
    margin: 34px 0 16px;
}

.single-product-content h2 {
    font-size: 30px;
}

.single-product-content h3 {
    font-size: 24px;
}

.single-product-content h4 {
    font-size: 20px;
}

.single-product-content ul,
.single-product-content ol {
    margin: 0 0 22px 22px;
    padding: 0;
}

.single-product-content li {
    margin-bottom: 8px;
}

.single-product-content blockquote {
    margin: 28px 0;
    padding: 22px 26px;
    border-left: 4px solid #ea0b13;
    background: #fafafa;
    color: #555;
}


/* 后台插入 table 的样式 */
.single-product-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.single-product-content table th,
.single-product-content table td {
    border: 1px solid #e8e8e8;
    padding: 14px 16px;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

.single-product-content table th {
    background: #f7f7f7;
    color: #111;
    font-weight: 600;
}

.single-product-content table tr:nth-child(even) td {
    background: #fcfcfc;
}

.single-product-content table tr:hover td {
    background: rgba(234, 11, 19, 0.035);
}


/* =========================
   Recommended Products
========================= */
.single-product-recommend {
    padding-top: 70px;
    border-top: 1px solid #eee;
}

.single-product-recommend-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.single-product-recommend-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0,0,0,0.04);
    transition: all 0.28s ease;
}

.single-product-recommend-item:hover {
    border-color: rgba(234, 11, 19, 0.35);
    box-shadow: 0 18px 42px rgba(234, 11, 19, 0.12);
    transform: translateY(-5px);
}

.single-product-recommend-img {
    display: block;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #f7f7f7;
}

.single-product-recommend-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.35s ease;
}

.single-product-recommend-item:hover .single-product-recommend-img img {
    transform: scale(1.06);
}

.single-product-recommend-info {
    padding: 22px 20px 24px;
}

.single-product-recommend-info h3 {
    font-size: 19px;
    line-height: 1.42;
    margin: 0 0 12px;
}

.single-product-recommend-info h3 a {
    color: #111;
}

.single-product-recommend-info h3 a:hover {
    color: #ea0b13;
}

.single-product-recommend-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 18px;
}

.single-product-recommend-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    background: #ea0b13;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.single-product-recommend-more i {
    margin-left: 8px;
    transition: all 0.25s ease;
}

.single-product-recommend-more:hover {
    background: #c80008;
    color: #fff;
}

.single-product-recommend-more:hover i {
    transform: translateX(3px);
}


/* =========================
   Mobile
========================= */
@media screen and (max-width: 768px) {
    .single-product-page {
        padding: 48px 0 60px;
    }

    .single-product-top {
        grid-template-columns: 1fr;
        gap: 34px;
        margin-bottom: 55px;
    }

    .single-product-info h1 {
        font-size: 28px;
    }

    .product-gallery-main {
        border-radius: 16px;
        cursor: default;
    }

    .product-gallery-main.is-zooming img {
        transform: none;
    }

    .product-gallery-arrow {
        opacity: 1;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .product-gallery-prev {
        left: 10px;
    }

    .product-gallery-next {
        right: 10px;
    }

    .product-gallery-zoom-icon {
        display: none;
    }

    .product-gallery-thumb {
        flex: 0 0 74px;
        width: 74px;
        height: 74px;
    }

    .product-gallery-thumb-arrow {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 20px;
    }

    .single-product-section-title h2 {
        font-size: 26px;
    }

    .single-product-detail {
        padding: 45px 0 55px;
    }

    .single-product-content {
        font-size: 15px;
    }

    .single-product-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .single-product-recommend {
        padding-top: 55px;
    }

    .single-product-recommend-list {
        grid-template-columns: 1fr;
    }

    .single-product-recommend-img {
        height: auto;
    }
}


.product-gallery-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,0.82);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 90px;
}

.product-gallery-popup.active {
    display: flex;
}

.product-gallery-popup-inner {
    max-width: 100%;
    max-height: 100%;
    text-align: center;
}

.product-gallery-popup-inner img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    display: block;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.product-gallery-popup-close {
    position: absolute;
    right: 32px;
    top: 28px;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.product-gallery-popup-close:hover {
    background: #ea0b13;
    color: #fff;
}

.product-gallery-popup-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: #111;
    font-size: 34px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.product-gallery-popup-arrow:hover {
    background: #ea0b13;
    color: #fff;
}

.product-gallery-popup-prev {
    left: 32px;
}

.product-gallery-popup-next {
    right: 32px;
}

@media screen and (max-width: 768px) {
    .product-gallery-popup {
        padding: 50px 18px;
    }

    .product-gallery-popup-close {
        right: 16px;
        top: 16px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .product-gallery-popup-arrow {
        width: 42px;
        height: 42px;
        font-size: 26px;
    }

    .product-gallery-popup-prev {
        left: 12px;
    }

    .product-gallery-popup-next {
        right: 12px;
    }
}
