/* detail.css - Product Detail Page Styles */

    /* Product detail page styles - Left-right layout */
    .product-page {
        background: #f5f5f5;
        min-height: 100vh;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }

    /* Main product area - Left-right layout */
    .product-main-section {
        background: #fff;
        padding: 30px 0;
        margin-bottom: 20px;
    }

    .product-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }

    /* Left gallery */
    .left-gallery {
        position: sticky;
        top: 20px;
    }

    .gallery-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .main-image {
        position: relative;
        width: 100%;
        overflow: hidden;
        border-radius: 8px;
        background: #f6f8f9;
    }

    .image-slider {
        position: relative;
        width: 100%;
        height: 600px;
    }

    .slide-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slide-item.active {
        opacity: 1;
        z-index: 1;
    }

    .slide-item img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        border: none;
        padding: 10px 15px;
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.3s;
        z-index: 2;
    }

    .nav-btn:hover {
        background: rgba(0, 0, 0, 0.8);
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .thumbnail-list {
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .thumbnail-item {
        width: 80px;
        height: 80px;
        cursor: pointer;
        border: 2px solid transparent;
        border-radius: 4px;
        overflow: hidden;
        transition: all 0.3s;
    }

    .thumbnail-item:hover {
        border-color: #1E9FFF;
    }

    .thumbnail-item.active {
        border-color: #1E9FFF;
    }

    .thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .image-indicator {
        text-align: center;
        color: #666;
        font-size: 14px;
    }

    /* Right product info */
    .right-info {
        padding: 20px 0;
    }

    .info-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    /* Mobile responsive product layout */
    @media screen and (max-width: 768px) {
        * {
            box-sizing: border-box;
        }
        
        body, html {
            overflow-x: hidden;
            width: 100%;
        }
        
        .product-page {
            width: 100%;
            overflow-x: hidden;
        }
        
        .product-main-section {
            padding: 15px 0;
            width: 100%;
            overflow-x: hidden;
        }

        .product-layout {
            grid-template-columns: 1fr;
            gap: 20px;
            width: 100%;
        }

        .left-gallery {
            position: static;
            width: 100%;
        }

        .gallery-wrapper {
            gap: 15px;
            width: 100%;
        }

        .main-image {
            width: 100%;
            overflow: hidden;
        }

        .image-slider {
            height: 320px;
            width: 100%;
            overflow: hidden;
        }

        .slide-item {
            width: 100%;
            overflow: hidden;
        }

        .slide-item img {
            max-height: 320px;
            width: 100%;
            object-fit: cover;
        }

        /* Show navigation buttons on mobile */
        .nav-btn {
            opacity: 1 !important;
            padding: 8px 12px;
        }

        .nav-btn svg {
            width: 20px;
            height: 20px;
        }

        /* Hide dots indicator on mobile - use thumbnails instead */
        .slider-dots {
            display: none !important;
        }

        .media-switcher {
            gap: 10px;
            width: 100%;
        }

        .media-switcher .switch-btn {
            padding: 10px 16px;
            font-size: 13px;
            flex: 1;
        }

        .media-switcher .switch-btn svg {
            width: 16px;
            height: 16px;
        }

        .right-info {
            padding: 10px 0;
            width: 100%;
        }

        .product-title {
            font-size: 18px;
            max-width: 100%;
            word-wrap: break-word;
        }

        .product-subtitle {
            font-size: 13px;
        }

        .product-price {
            padding: 12px 0;
            width: 100%;
        }

        .price-symbol {
            font-size: 16px;
        }

        .price-value {
            font-size: 26px;
        }

        .discount-badge {
            font-size: 12px;
            padding: 4px 8px;
        }

        .delivery-section {
            padding: 10px 0;
            font-size: 13px;
            width: 100%;
        }

        .delivery-row {
            gap: 8px;
            width: 100%;
        }

        .delivery-row .label {
            font-size: 13px;
        }

        .delivery-row .value {
            font-size: 13px;
            word-wrap: break-word;
        }

        .sku-selection-section {
            margin: 10px 0;
            width: 100%;
        }

        .sku-title {
            font-size: 14px;
            margin-bottom: 10px;
        }

        .sku-list {
            gap: 8px;
            width: 100%;
        }

        .sku-item {
            padding: 8px;
            min-width: 80px;
        }

        .sku-image {
            width: 60px;
            height: 60px;
        }

        .sku-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .sku-name {
            font-size: 12px;
            margin-top: 6px;
            word-wrap: break-word;
        }

        .inquiry-section {
            margin-top: 15px;
            width: 100%;
        }

        .inquiry-btn {
            width: 100%;
            padding: 14px;
            font-size: 14px;
        }

        .inquiry-btn svg {
            width: 20px;
            height: 20px;
        }

        .inquiry-text {
            font-size: 14px;
        }
    }

    .product-title {
        font-size: 24px;
        font-weight: bold;
        color: #333;
        margin: 0 0 8px 0;
    }

    .product-subtitle {
        font-size: 14px;
        color: #999;
    }

    .product-price {
        display: flex;
        align-items: baseline;
        gap: 12px;
        padding: 16px 0;
        border-bottom: 1px solid #eee;
    }

    .price-symbol {
        font-size: 20px;
        color: #ff5000;
    }

    .price-value {
        font-size: 36px;
        color: #ff5000;
        font-weight: bold;
    }

    .price-original {
        font-size: 16px;
        color: #999;
        text-decoration: line-through;
    }

    /* Installment info */
    .installment-info {
        background: #f8f8f8;
        padding: 12px 16px;
        border-radius: 4px;
    }

    .installment-row {
        display: flex;
        gap: 10px;
        font-size: 13px;
    }

    .installment-row .label {
        color: #ff9800;
        font-weight: bold;
        white-space: nowrap;
    }

    .installment-row .value {
        line-height: 1.5;
        font-size: 14px;
    }

    /* Service badges */
    .service-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        padding: 12px 0;
    }

    .badge-item {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #666;
        font-size: 13px;
    }

    .badge-item i {
        color: #1E9FFF;
        font-size: 16px;
    }

    .delivery-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 0;
        font-size: 14px;
    }

    .delivery-row .label {
        color: #999;
        min-width: 80px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .location-selector {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #333;
        cursor: pointer;
    }

    .location-selector i {
        color: #999;
    }

    .free-shipping {
        color: #5FB878;
        font-weight: bold;
    }

    /* Write Review Button */
    .write-review-section {
        text-align: center;
        margin: 30px 0;
        padding: 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 12px;
    }

    .write-review-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 14px 32px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        border: none;
        border-radius: 28px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    }

    .write-review-btn:hover {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
    }

    .write-review-btn svg {
        transition: transform 0.4s;
    }

    .write-review-btn:hover svg {
        transform: rotate(-15deg) scale(1.1);
    }

    /* No comments */
    .no-comments {
        text-align: center;
        padding: 60px 20px;
        color: #999;
        font-size: 16px;
    }

    /* No comments placeholder - Simple version */
    .no-comments-placeholder {
        text-align: center;
        padding: 60px 20px;
        margin: 40px 0;
    }

    .placeholder-icon {
        margin-bottom: 24px;
    }

    .placeholder-icon svg {
        width: 80px;
        height: 80px;
        stroke: #cbd5e0;
        stroke-width: 1.5;
    }

    .placeholder-title {
        font-size: 22px;
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 12px;
    }

    .placeholder-text {
        font-size: 15px;
        color: #718096;
        margin-bottom: 30px;
        line-height: 1.6;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .no-comments-placeholder .write-review-btn {
        margin: 0 auto;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        border: none;
        padding: 14px 36px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 28px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.25);
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .no-comments-placeholder .write-review-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    }

    .no-comments-placeholder .write-review-btn:active {
        transform: translateY(0);
    }

    .no-comments-placeholder .write-review-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Seller reply */
    .seller-reply {
        margin-top: 15px;
        padding: 15px;
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        border-left: 3px solid #1E9FFF;
        border-radius: 8px;
    }

    .reply-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
        font-size: 13px;
        color: #1E9FFF;
        font-weight: 600;
    }

    .reply-header svg {
        width: 16px;
        height: 16px;
    }

    .reply-time {
        margin-left: auto;
        color: #999;
        font-size: 12px;
        font-weight: normal;
    }

    .reply-content {
        color: #333;
        line-height: 1.6;
        font-size: 14px;
    }

    /* Pagination */
    .comment-pagination {
        margin-top: 30px;
        text-align: center;
    }

    .pagination {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .page-btn {
        padding: 8px 16px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s;
        font-size: 14px;
        color: #666;
    }

    .page-btn:hover:not(:disabled) {
        background: #1E9FFF;
        color: #fff;
        border-color: #1E9FFF;
    }

    .page-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .page-number {
        min-width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s;
        font-size: 14px;
        color: #666;
    }

    .page-number:hover {
        background: #1E9FFF;
        color: #fff;
        border-color: #1E9FFF;
    }

    .page-number.active {
        background: #1E9FFF;
        color: #fff;
        border-color: #1E9FFF;
    }

    .page-ellipsis {
        color: #999;
        padding: 0 4px;
    }

    /* Dialog styles */
    #writeReviewDialog .dialog-section {
        margin-bottom: 25px;
    }

    #writeReviewDialog .dialog-title {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
        font-size: 16px;
        font-weight: 600;
        color: #333;
    }

    #writeReviewDialog .dialog-title svg {
        color: #667eea;
    }

    #writeReviewDialog .layui-textarea {
        border-color: #e0e0e0;
        transition: border-color 0.3s;
    }

    #writeReviewDialog .layui-textarea:focus {
        border-color: #667eea;
    }

    #writeReviewDialog .photo-upload-placeholder {
        padding: 40px 20px;
        background: #f8f9fa;
        border: 2px dashed #e0e0e0;
        border-radius: 8px;
        text-align: center;
    }

    #writeReviewDialog .upload-hint {
        color: #999;
        font-size: 14px;
    }

    .dialog-footer {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        padding-top: 20px;
        border-top: 1px solid #e0e0e0;
    }

    .btn-cancel,
    .btn-submit {
        padding: 10px 24px !important;
        border-radius: 8px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        transition: all 0.3s !important;
        border: none !important;
        display: inline-block !important;
        text-align: center !important;
        line-height: 1.5 !important;
    }

    .btn-cancel {
        background: #f8f9fa !important;
        color: #666 !important;
        border: 1px solid #e0e0e0 !important;
    }

    .btn-cancel:hover {
        background: #e9ecef !important;
    }

    .btn-submit {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    }

    .btn-submit:hover {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
    }

    /* Rating stars in review form */
    #reviewRating {
        text-align: left;
        padding: 20px 0;
    }

    #reviewRating .rating-star {
        display: inline-block;
        cursor: pointer;
        transition: transform 0.2s;
        margin: 0 4px;
    }

    #reviewRating .rating-star:hover {
        transform: scale(1.2);
    }

    #reviewRating .rating-star svg {
        transition: all 0.2s;
    }

    /* Custom dialog close button */
    .layui-layer .layui-layer-close {
        background: none !important;
        border: none !important;
        width: 40px !important;
        height: 40px !important;
        top: 0 !important;
        right: 0 !important;
        cursor: pointer !important;
        opacity: 0.8 !important;
        transition: all 0.3s !important;
        z-index: 9999 !important;
    }

    .layui-layer .layui-layer-close:hover {
        opacity: 1 !important;
        background-color: rgba(0,0,0,0.05) !important;
        border-radius: 50% !important;
    }

    .layui-layer .layui-layer-close:before {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 24px !important;
        height: 24px !important;
        margin-top: -12px !important;
        margin-left: -12px !important;
        background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 6L6 18' stroke='%23333333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6 6L18 18' stroke='%23333333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }

    .layui-layer .layui-layer-close:hover:before {
        background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 6L6 18' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6 6L18 18' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    }

    /* Mobile responsive dialog styles */
    @media screen and (max-width: 768px) {
        #writeReviewDialog .dialog-section {
            margin-bottom: 15px;
        }

        #writeReviewDialog .dialog-title {
            font-size: 14px;
            gap: 8px;
        }

        #writeReviewDialog .dialog-title svg {
            width: 18px;
            height: 18px;
        }

        #writeReviewDialog .layui-input {
            font-size: 14px;
            padding: 10px 12px;
        }

        #writeReviewDialog .layui-textarea {
            font-size: 14px;
            padding: 10px;
        }

        #writeReviewDialog .photo-upload-placeholder {
            padding: 20px 15px;
        }

        #writeReviewDialog .dialog-footer {
            flex-direction: column;
            gap: 10px;
        }

        #writeReviewDialog .btn-cancel,
        #writeReviewDialog .btn-submit {
            width: 100%;
            padding: 12px 20px;
            font-size: 14px;
        }

        #reviewRating {
            padding: 15px 0;
        }

        #reviewRating .rating-star svg {
            width: 28px;
            height: 28px;
        }
    }

    /* Subscribe Dialog Styles */
    #subscribeDialog .subscribe-intro {
        text-align: center;
        padding: 20px 0 30px;
    }

    #subscribeDialog .subscribe-intro svg {
        margin-bottom: 15px;
    }

    #subscribeDialog .subscribe-intro h3 {
        font-size: 22px;
        font-weight: 600;
        color: #333;
        margin: 10px 0;
    }

    #subscribeDialog .subscribe-intro p {
        color: #666;
        font-size: 14px;
        line-height: 1.6;
    }

    #subscribeDialog .subscribe-form {
        padding: 20px;
        background: #f8f9fa;
        border-radius: 8px;
        margin-bottom: 20px;
    }

    #subscribeDialog .subscribe-label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: #333;
        margin-bottom: 8px;
    }

    #subscribeDialog .layui-input {
        border-color: #e0e0e0;
        transition: border-color 0.3s;
    }

    #subscribeDialog .layui-input:focus {
        border-color: #667eea;
    }

    #subscribeDialog .subscribe-benefits {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    #subscribeDialog .benefit-item {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        color: #666;
    }

    #subscribeDialog .benefit-item i {
        color: #28a745;
        font-size: 18px;
    }

    #subscribeDialog .dialog-footer {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        padding-top: 20px;
        border-top: 1px solid #e0e0e0;
    }

    #subscribeDialog .btn-cancel,
    #subscribeDialog .btn-submit {
        padding: 10px 24px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s;
        border: none;
    }

    #subscribeDialog .btn-cancel {
        background: #f8f9fa;
        color: #666;
        border: 1px solid #e0e0e0;
    }

    #subscribeDialog .btn-cancel:hover {
        background: #e9ecef;
    }

    #subscribeDialog .btn-submit {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

    #subscribeDialog .btn-submit:hover {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    }

    /* Purchase options */
    .purchase-options {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .option-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .option-label {
        color: #999;
        font-size: 14px;
    }

    .option-list {
        display: flex;
        gap: 12px;
    }

    .option-item {
        flex: 1;
        padding: 12px;
        border: 2px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .option-item:hover {
        border-color: #1E9FFF;
    }

    .option-item.active {
        border-color: #1E9FFF;
        background: #f0f9ff;
    }

    .option-name {
        font-size: 14px;
        color: #333;
        margin-bottom: 4px;
    }

    .option-price {
        font-size: 16px;
        color: #ff5000;
        font-weight: bold;
    }

    /* Quantity control */
    .quantity-control {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .qty-btn {
        width: 32px;
        height: 32px;
        border: 1px solid #ddd;
        background: #f8f8f8;
        cursor: pointer;
        font-size: 18px;
        border-radius: 4px;
        transition: all 0.3s;
    }

    .qty-btn:hover {
        background: #1E9FFF;
        color: #fff;
        border-color: #1E9FFF;
    }

    .qty-input {
        width: 60px;
        height: 32px;
        border: 1px solid #ddd;
        text-align: center;
        font-size: 14px;
        border-radius: 4px;
    }

    .stock-status {
        color: #5FB878;
        font-size: 14px;
        margin-left: 8px;
    }

    /* Purchase buttons */
    .action-buttons {
        display: flex;
        gap: 12px;
    }

    .btn {
        flex: 1;
        padding: 14px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .btn-cart {
        background: #FFB800;
        color: #fff;
    }

    .btn-cart:hover {
        background: #FFA200;
    }

    .btn-buy {
        background: #FF5000;
        color: #fff;
    }

    .btn-buy:hover {
        background: #FF3300;
    }

    /* Notice section */
    .notice-section {
        background: #fff7e6;
        border-left: 3px solid #ff9800;
        padding: 12px 16px;
        border-radius: 4px;
    }

    .notice-item {
        display: flex;
        gap: 10px;
        margin-bottom: 8px;
        font-size: 13px;
    }

    .notice-item:last-child {
        margin-bottom: 0;
    }

    .notice-label {
        background: #ff9800;
        color: #fff;
        padding: 2px 8px;
        border-radius: 2px;
        font-size: 12px;
        white-space: nowrap;
    }

    .notice-content {
        color: #666;
        line-height: 1.6;
    }

    .notice-item.highlight .notice-label {
        background: #f44336;
    }

    /* Detail area */
    .product-intro-section {
        background: #fff;
        padding: 30px 0;
    }

    .detail-tabs {
        display: flex;
        border-bottom: 2px solid #eee;
        margin-bottom: 30px;
    }

    .tab-item {
        padding: 15px 30px;
        cursor: pointer;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 8px;
        color: #666;
    }

    .tab-item:hover {
        color: #1E9FFF;
    }

    .tab-item.active {
        color: #1E9FFF;
        border-bottom-color: #1E9FFF;
    }

    .tab-pane {
        display: none;
    }

    .tab-pane.active {
        display: block;
    }

    .detail-content {
        line-height: 1.8;
        color: #333;
    }

    .detail-section {
        margin-bottom: 40px;
    }

    .detail-section h3 {
        font-size: 20px;
        color: #333;
        margin-bottom: 15px;
    }

    .detail-section p {
        color: #666;
        margin-bottom: 20px;
    }

    .detail-section img {
        max-width: 100%;
        border-radius: 8px;
        margin: 15px 0;
    }

    .params-table {
        width: 100%;
        border-collapse: collapse;
    }

    .params-table tr {
        border-bottom: 1px solid #eee;
    }

    .params-table td {
        padding: 12px;
    }

    .param-name {
        width: 200px;
        background: #f8f8f8;
        color: #666;
        font-weight: bold;
    }

    .param-value {
        color: #333;
        line-height: 1.6;
    }

    /* Comment area */
    .comments-summary {
        text-align: center;
        padding: 30px;
        background: #f8f8f8;
        border-radius: 8px;
        margin-bottom: 30px;
    }

    .rating-score {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .score-number {
        font-size: 48px;
        font-weight: bold;
        color: #ff9800;
    }

    .score-stars {
        font-size: 20px;
        color: #ff9800;
    }

    .score-text {
        color: #666;
        font-size: 14px;
    }

    .comments-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .comment-item {
        background: #f8f8f8;
        border-radius: 8px;
        padding: 20px;
    }

    .comment-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .comment-user {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    
    .user-avatar-svg {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .user-avatar-svg svg {
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }

    .user-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .user-name {
        font-weight: bold;
        color: #333;
    }

    .comment-time {
        color: #999;
        font-size: 12px;
    }

    .comment-rating {
        color: #ff9800;
        font-size: 18px;
    }

    .comment-content {
        color: #666;
        line-height: 1.6;
    }

    /* Recommended products */
    .recommend-section {
        background: #f8f9fa;
        padding: 30px 0 60px 0;
        border-top: 1px solid #e9ecef;
        margin-bottom:9vh;
    }

    .recommend-section .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .section-title {
        text-align: center;
        margin-bottom: 50px;
    }

    .section-title h3 {
        font-size: 32px;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 12px;
        position: relative;
        display: inline-block;
    }

    .section-title h3::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #1E9FFF 0%, #0078d7 100%);
        border-radius: 2px;
    }

    .section-title p {
        font-size: 15px;
        color: #6c757d;
        margin-top: 20px;
        letter-spacing: 0.5px;
    }

    .product-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }

    .product-card {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        transition: all 0.3s ease;
        cursor: pointer;
        border: 1px solid #e9ecef;
    }

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 24px rgba(30, 159, 255, 0.15);
        border-color: #1E9FFF;
    }

    .product-image {
        width: 100%;
        height: 260px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        padding: 20px;
        position: relative;
        overflow: hidden;
        border-bottom: 1px solid #f1f3f5;
    }

    .product-image img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    .product-card:hover .product-image img {
        transform: scale(1.08);
    }

    .product-info {
        padding: 24px 20px;
        text-align: center;
        background: #fff;
        position: relative;
    }

    .product-name {
        font-size: 16px;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 16px;
        line-height: 1.5;
        min-height: 48px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.3s ease;
    }

    .product-card:hover .product-name {
        color: #1E9FFF;
    }

    .view-btn {
        display: inline-block;
        padding: 10px 28px;
        background: linear-gradient(135deg, #1E9FFF 0%, #0078d7 100%);
        color: #fff;
        text-decoration: none;
        border-radius: 24px;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(30, 159, 255, 0.25);
    }

    .view-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(30, 159, 255, 0.35);
        background: linear-gradient(135deg, #0078d7 0%, #1E9FFF 100%);
    }

    /* 响应式设计 */
    @media screen and (max-width: 768px) {
        .recommend-section {
            padding: 40px 0;
            margin-top: 40px;
        }

        .section-title h3 {
            font-size: 26px;
        }

        .product-list {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }

        .product-image {
            height: 220px;
        }
    }

    @media screen and (max-width: 480px) {
        .product-list {
            grid-template-columns: 1fr;
        }
    }


    @media screen and (max-width: 480px) {
        .product-list {
            grid-template-columns: 1fr;
        }
    }
    .main-image {
        position: relative;
        width: 100%;
        overflow: visible;
        border-radius: 8px;
        background: #f8f8f8;
    }

    .image-slider {
        position: relative;
        width: 100%;
        height: 600px;
    }

    .slide-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slide-item.active {
        opacity: 1;
        z-index: 1;
    }

    .slide-item img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        border: none;
        padding: 10px 15px;
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.3s;
        z-index: 2;
        opacity: 0;
    }

    .main-image:hover .nav-btn {
        opacity: 1;
    }

    .nav-btn:hover {
        background: rgba(0, 0, 0, 0.8);
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    /* Thumbnail overlay - Always hidden by default, shown only on hover */
    .thumbnail-overlay {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        display: flex;
        flex-direction: row;
        gap: 8px;
        padding: 12px 16px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 8px;
        z-index: 10;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    /* Show thumbnail overlay only when hovering over main image */
    .main-image:hover .thumbnail-overlay {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .thumbnail-item {
        width: 50px;
        height: 50px;
        cursor: pointer;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 4px;
        overflow: hidden;
        transition: all 0.3s;
        flex-shrink: 0;
    }

    .thumbnail-item:hover {
        border-color: rgba(255, 255, 255, 0.8);
        transform: scale(1.05);
    }

    .thumbnail-item.active {
        border-color: #fff;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    }

    .thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .image-indicator {
        text-align: center;
        color: #666;
        font-size: 14px;
        padding: 12px 0;
    }
    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        border: none;
        padding: 10px 12px;
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.3s;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-btn:hover {
        background: rgba(0, 0, 0, 0.8);
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
    /* 媒体类型切换标签 */
    .media-tabs {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 20;
        background: rgba(0, 0, 0, 0.6);
        padding: 8px 12px;
        border-radius: 20px;
        backdrop-filter: blur(10px);
    }

    .media-tab {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 16px;
        color: rgba(255, 255, 255, 0.8);
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 13px;
        white-space: nowrap;
    }

    .media-tab:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.6);
    }

    .media-tab.active {
        background: #fff;
        border-color: #fff;
        color: #333;
    }

    .media-tab svg {
        width: 16px;
        height: 16px;
    }

    .video-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000;
    }

    .video-item.active {
        opacity: 1;
        z-index: 1;
    }

    .video-item video {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Video thumbnail styles */
    .video-thumb-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .video-thumb-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .play-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 32px;
        height: 32px;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .video-thumb:hover .play-icon {
        opacity: 1;
    }

    .video-thumb.active .play-icon {
        opacity: 1;
        background: rgba(30, 159, 255, 0.8);
    }

    /* 响应式调整 */
    @media (max-width: 768px) {
        .media-tabs {
            top: 10px;
            padding: 6px 10px;
        }

        .media-tab {
            padding: 6px 12px;
            font-size: 12px;
        }

        .media-tab span {
            display: none;
        }
    }
    /* Media type switcher - Below image */
    .media-switcher {
        display: flex;
        gap: 12px;
        justify-content: center;
        margin-top: 20px;
    }

    .switch-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 24px;
        background: #fff;
        border: 2px solid #e0e0e0;
        border-radius: 24px;
        color: #666;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 14px;
        font-weight: 500;
    }

    .switch-btn:hover {
        border-color: #1E9FFF;
        color: #1E9FFF;
    }

    .switch-btn.active {
        background: #1E9FFF;
        border-color: #1E9FFF;
        color: #fff;
    }

    .switch-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Slider indicator - Dots */
    .slider-dots {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 15;
        background: rgba(255, 255, 255, 0.9);
        padding: 10px 16px;
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: opacity 0.3s ease;
        opacity: 1;
    }

    /* Hide dots when hovering over image (show thumbnails instead) */
    .main-image:hover .slider-dots {
        opacity: 0;
        pointer-events: none;
    }

    .slider-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #d0d0d0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .slider-dots .dot:hover {
        background: #999;
        transform: scale(1.2);
    }

    .slider-dots .dot.active {
        background: #000;
        border-radius: 4px;
    }

    /* Video player styles */
    .video-slider {
        position: relative;
        width: 100%;
        height: 600px;
        z-index: 5;
    }

    .video-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000;
    }

    .video-item.active {
        opacity: 1;
        z-index: 1;
    }

    .video-item video {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* 响应式调整 */
    @media (max-width: 768px) {
        .media-switcher {
            margin-top: 15px;
        }

        .switch-btn {
            padding: 10px 14px;
            font-size: 13px;
        }

        .switch-btn span {
            display: inline;
        }

        .slider-dots {
            bottom: 15px;
            padding: 8px 12px;
        }

        .slider-dots .dot.active {
            width: 16px;
        }
    }

</style>

    .sku-title {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
        font-size: 16px;
        font-weight: 600;
        color: #333;
    }

    .sku-title span:first-child {
        font-size: 16px;
        font-weight: 600;
        color: #333;
    }

    .sku-list {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }

    .sku-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 140px;
        padding: 16px;
        background: #fff;
        border: 2px solid #e5e5e5;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sku-item:hover {
        border-color: #ff6b6b;
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
        transform: translateY(-2px);
    }

    .sku-item.active {
        border-color: #ff6b6b;
        background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.25);
    }

    .sku-image {
        width: 100%;
        height: 120px;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f8f8;
        border-radius: 8px;
        overflow: hidden;
    }

    .sku-image img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

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

    .sku-name {
        font-size: 14px;
        color: #333;
        text-align: center;
        font-weight: 500;
        line-height: 1.4;
    }

    .sku-item.active .sku-name {
        color: #ff6b6b;
        font-weight: 600;
    }

    @media (max-width: 768px) {
        .sku-list {
            gap: 12px;
        }

        .sku-item {
            width: 110px;
            padding: 12px;
        }

        .sku-image {
            height: 100px;
        }

        .sku-name {
            font-size: 13px;
        }
    }
    /* Purchase options */

    /* Inquiry Section Styles */
    .inquiry-section {
        margin-top: 1px;
        padding-top: 2px;
    }

    .inquiry-btn {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 16px 32px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
        position: relative;
        overflow: hidden;
    }

    .inquiry-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s;
    }

    .inquiry-btn:hover::before {
        left: 100%;
    }

    .inquiry-btn:hover {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
    }

    .inquiry-btn:active {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
    }

    .inquiry-btn svg {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .inquiry-btn:hover svg {
        transform: scale(1.15) rotate(-5deg);
    }

    .inquiry-text {
        position: relative;
        z-index: 1;
    }
</style>

    .sku-selection-section {
    margin-top: 15px;
    margin-bottom: 30px;
}

.sku-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.sku-title span:first-child {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.sku-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.sku-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    padding: 1px;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sku-item:hover {
    border-color: #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
    transform: translateY(-2px);
}

.sku-item.active {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.25);
}

.sku-image {
    width: 100%;
    height: 120px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
}

.sku-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.sku-name {
    font-size: 14px;
    color: #333;
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
}

.sku-item.active .sku-name {
    color: #ff6b6b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .sku-list {
        gap: 12px;
    }

    .sku-item {
        width: 110px;
        padding: 12px;
    }

    .sku-image {
        height: 100px;
    }

    .sku-name {
        font-size: 13px;
    }
}

    /* Installment info */
    .installment-info {
        background: #f8f8f8;
        padding: 12px 16px;
        border-radius: 4px;
    }

    .installment-row {
        display: flex;
        gap: 10px;
        font-size: 13px;
    }

    .installment-row .label {
        color: #ff9800;
        font-weight: bold;
        white-space: nowrap;
    }

    .installment-row .value {
        color: #666;
        line-height: 1.5;
    }

    /* Product Highlights */
    .product-highlights {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 12px;
        padding: 20px;
        margin: 20px 0;
        color: #fff;
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
    }

    .highlights-title {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
        font-size: 16px;
        font-weight: 600;
    }

    .highlights-title svg {
        color: #ffd700;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    }

    .highlights-content {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 16px;
        backdrop-filter: blur(10px);
    }

    .highlights-text {
        margin: 0;
        font-size: 14px;
        line-height: 1.8;
        color: rgba(255, 255, 255, 0.95);
        font-weight: 400;
    }

    /* Delivery info */
    .delivery-section {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
        border: 1px solid #e9ecef;
    }

    .delivery-header {
        padding-bottom: 16px;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 16px;
    }

    .delivery-footer {
        padding-top: 0;
    }

    .delivery-row {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .delivery-icon {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        color: #667eea;
    }

    .delivery-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .delivery-label {
        font-size: 13px;
        color: #6c757d;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .delivery-location {
        font-size: 16px;
        color: #212529;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .delivery-value {
        font-size: 16px;
        color: #212529;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .free-shipping {
        color: #28a745;
    }

    .free-shipping svg {
        color: #28a745;
    }

/* Discount badge */
.discount-badge {
    display: inline-block;
    margin-left: 12px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .discount-badge {
        display: block;
        margin: 10px 0 0 0;
        width: fit-content;
    }
}
