.product-gallery {
    margin-bottom: 50px;
    position: sticky;
    top: 30px;
}

.mt50 {
    margin-top: 50px;
}

/* ── Gallery Image Wrapper (zoom container) ── */
.gallery-image-wrap {
    position: relative;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    background: #fff;
    cursor: crosshair;
}

.gallery-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* Loading shimmer */
.gallery-image-wrap .img-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 0;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.gallery-image-wrap img.loaded + .img-shimmer,
.gallery-image-wrap img[src] + .img-shimmer {
    display: none;
}

/* Zoom lens */
.zoom-lens {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    transition: opacity 0.15s ease;
}

.gallery-image-wrap:hover .zoom-lens {
    opacity: 1;
}

/* Expand icon overlay */
.gallery-image-wrap .expand-icon {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.92);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F3460;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-image-wrap:hover .expand-icon {
    opacity: 1;
}

.expand-icon:hover {
    background: #0F3460;
    color: #fff;
}

/* ── Thumbnails ── */
.thumbnail-container {
    display: flex;
    gap: 10px;
    padding: 4px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    position: relative;
}

.thumbnail-container::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.thumbnail-wrap {
    flex: 0 0 auto;
    position: relative;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e8ecf0;
    transition: all 0.3s ease;
    opacity: 0.6;
    position: relative;
}

    .thumbnail:hover {
        border-color: #0F3460;
        opacity: 0.85;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(15, 52, 96, 0.12);
    }

    .thumbnail.active {
        border-color: #0F3460;
        opacity: 1;
        box-shadow: 0 0 0 2px rgba(15, 52, 96, 0.2);
    }

    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    .thumbnail:hover img {
        transform: scale(1.08);
    }

/* Thumbnail scroll buttons */
.thumbnail-scroll {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    font-size: 0.7rem;
    color: #555;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    opacity: 0;
}

.thumbnail-container:hover .thumbnail-scroll {
    opacity: 1;
}

.thumbnail-scroll:hover {
    background: #0F3460;
    color: #fff;
    border-color: #0F3460;
}

.thumbnail-scroll.prev-thumbs {
    left: 4px;
}

.thumbnail-scroll.next-thumbs {
    right: 4px;
}


.product-info {
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f5f5f5;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #ddd;
    color: #666;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #0F3460;
    color: #0F3460;
    background-color: rgba(15, 52, 96, 0.04);
}

.product-title {
    color: #0F3460;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 18px;
    font-size: 1.6rem;
    line-height: 1.35;
}

    .product-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #E94560, #f06a80);
        border-radius: 2px;
    }

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: #E94560;
    margin-bottom: 24px;
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #fff5f7, #ffeeef);
    border-radius: 12px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .product-rating i {
        color: #f9ca24;
        margin-right: 5px;
    }

.rating-count {
    color: #666;
    font-size: 0.8rem;
    margin-left: 10px;
    font-weight: normal;
    font-style: italic;
}

.product-card-content {
    margin: 10px;
}

.product-description {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1rem;
}

.product-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 20px;
}

    .option-group label {
        display: block;
        margin-bottom: 10px;
        font-weight: 500;
        color: #333;
    }

    .option-group select {
        width: 100%;
        padding: 10px 15px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-family: 'Inter', sans-serif;
    }

.quantity-selector {
    display: flex;
    align-items: center;
    width: 120px;
    margin-bottom: 30px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .quantity-btn:hover {
        background-color: #0F3460;
        color: white;
        border-color: #0F3460;
    }

.quantity-input {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

/* ── AI Ask Button ── */
.btn-ai-ask {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.3);
    font-family: inherit;
}

.btn-ai-ask:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
    background: linear-gradient(135deg, #5a4bd1, #9333ea);
}

.btn-ai-ask i {
    font-size: 1.1rem;
}

/* ── AI Dialog ── */
.ai-dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.ai-dialog-overlay.active {
    display: flex;
}

.ai-dialog {
    width: 480px;
    max-width: 92vw;
    height: 600px;
    max-height: 80vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: aiDialogIn 0.3s ease;
}

@keyframes aiDialogIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ai-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    color: #fff;
}

.ai-dialog-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.ai-dialog-title i {
    font-size: 1.3rem;
}

.ai-dialog-close {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.ai-dialog-close:hover {
    background: rgba(255,255,255,0.35);
}

.ai-dialog-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8f9fc;
}

.ai-message {
    display: flex;
    gap: 10px;
    max-width: 85%;
}

.ai-message-bot {
    align-self: flex-start;
}

.ai-message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ai-message-bot .ai-avatar {
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    color: #fff;
}

.ai-message-user .ai-avatar {
    background: #0F3460;
    color: #fff;
}

.ai-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
}

.ai-message-bot .ai-bubble {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-top-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ai-message-user .ai-bubble {
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    color: #fff;
    border-top-right-radius: 4px;
}

.ai-dialog-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.ai-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e8ecf0;
    border-radius: 25px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.ai-input:focus {
    border-color: #6c5ce7;
}

.ai-send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.ai-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(108, 92, 231, 0.4);
}

@media (max-width: 768px) {
    .ai-dialog {
        height: 70vh;
        border-radius: 16px;
    }

    .ai-dialog-body {
        padding: 16px;
    }

    .ai-dialog-header {
        padding: 14px 18px;
    }

    .ai-dialog-footer {
        padding: 12px 18px;
    }
}

.product-specs {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
    border: 1px solid #f5f5f5;
}

.product-specs .section-title {
    margin-bottom: 24px;
    display: block;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    background: #fafbfc;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.spec-label {
    font-weight: 600;
    color: #0F3460;
    margin-bottom: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    color: #555;
    font-size: 0.95rem;
}

.product-features {
    margin-bottom: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f5f5f5;
}

.product-features .section-title {
    margin-bottom: 24px;
    display: block;
}

.features-list {
    list-style: none;
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

    .features-list li {
        display: flex;
        gap: 14px;
        align-items: flex-start;
        padding: 16px 18px;
        background: #fafbfc;
        border-radius: 12px;
        border: 1px solid #f0f0f0;
        transition: all 0.3s ease;
    }

    .features-list li:hover {
        background: #f0f4ff;
        border-color: #d0d8e8;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(15, 52, 96, 0.06);
    }

        .features-list li:before {
            display: none;
        }

    .features-list i {
        color: #f9ca24;
        margin-right: 0;
        margin-top: 3px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .features-list p {
        margin-bottom: 0;
        color: #555;
        font-size: 0.95rem;
        line-height: 1.6;
    }

/* ── Inquiry Form ── */
.inquiry-form .form-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.inquiry-form .form-group input,
.inquiry-form .form-group textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.inquiry-form .form-group input:focus,
.inquiry-form .form-group textarea:focus {
    border-color: #0F3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.08);
    outline: none;
}

.btn-submit-inquiry {
    background: linear-gradient(135deg, #E94560, #d63851) !important;
    padding: 14px 36px !important;
    font-size: 1rem !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer;
}

.btn-submit-inquiry:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.4) !important;
    background: linear-gradient(135deg, #d63851, #c02e45) !important;
}

/* ── Related Products ── */
.related-products {
    margin-bottom: 50px;
    padding-top: 10px;
}

.related-products .section-title {
    margin-bottom: 30px;
    display: block;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Related product card inner spacing */
.related-grid .product-card .product-info {
    padding: 24px 24px 26px;
}

.related-grid .product-card .product-info h3 {
    margin-bottom: 8px;
}

.related-grid .product-card .product-info h3 a {
    font-size: 17px;
}

.related-grid .product-card .product-info p {
    font-size: 0.85rem;
    margin-bottom: 8px;
    -webkit-line-clamp: 1;
}

.related-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.related-feature {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-feature i {
    color: #f9ca24;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.related-grid .product-card .product-link {
    padding: 8px 18px;
    font-size: 0.85rem;
    margin-top: 0;
}

.related-grid .product-card .product-info .product-link {
    margin-top: 0;
}

/* ── Lightbox ── */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.94);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-image {
    max-width: 88vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-image.zoomed {
    cursor: grab;
    max-width: none;
    max-height: none;
}

.lightbox-image.zoomed:active {
    cursor: grabbing;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.lightbox-counter {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.5);
    padding: 6px 20px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 24px;
}

.lightbox-nav.next {
    right: 24px;
}

.lightbox-download {
    position: absolute;
    bottom: 28px;
    right: 28px;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.lightbox-download:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-nav.prev {
        left: 12px;
    }

    .lightbox-nav.next {
        right: 12px;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-image {
        max-width: 94vw;
        max-height: 80vh;
    }
}

.product-details-section {
    padding-top: 20px;
}

.row > div {
    flex: 1; /* 让子元素平均分配可用空间 */
    min-width: 0; /* 防止内容溢出 */
    padding: 0 15px; /* 抵消父元素的负margin */
}







/* 针对大屏幕的额外设置 */
@media (min-width: 992px) {
    .col-lg-6 {
        flex: 0 0 50%; /* 明确设置为50%宽度 */
        max-width: 50%;
    }
}


@media (max-width: 768px) {
    .product-info {
        padding: 24px;
    }

    .product-specs {
        padding: 24px;
    }

    .product-features {
        padding: 24px;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

        .product-actions .btn {
            width: 100%;
        }

    .product-title {
        font-size: 1.3rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .thumbnail {
        width: 72px;
        height: 54px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .related-grid .product-card .product-info {
        padding: 20px 20px 22px;
    }
}


