/* Product Detail Page Styles */

/* Breadcrumb */
.breadcrumb-container {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #6c757d;
    font-weight: 300;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
}

/* Product Detail Section */
.product-detail-section {
    padding: 40px 0;
    background: #fff;
}

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

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
    align-items: start;
}

/* Product Images */
.product-images {
    position: relative;
}

.main-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    height: 600px;
}

.main-image-container:hover {
    transform: translateY(-5px);
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.main-image-container:hover .main-product-image {
    transform: scale(1.02);
}

.zoom-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.zoom-btn i {
    font-size: 20px;
    color: #333;
}

/* Product Information */
.product-info {
    padding: 20px 0;
}

.product-header {
    margin-bottom: 60px;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.product-header p {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

.product-actions {
    display: flex;
    /* flex-direction: column; */
    gap: 15px;
    margin-bottom: 30px;
}

.action-card {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
    position: relative;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.action-card::before {
    display: none;
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.action-icon i {
    font-size: 28px;
    color: white;
    font-weight: bold;
    color: var(--primary-color);
}

.action-content {
    flex: 1;
}

.action-content h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    color: var(--primary-color);
}

.action-content p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    color: var(--primary-color);
}

/* Download Card */
.download-card {
    /* background: var(--primary-color); */
    border-color: rgba(0, 37, 24, 0.6);
}

.download-card:hover {
    background: rgba(0, 37, 24, 0.1);
}

.download-card .action-icon {
    background: rgba(255, 255, 255, 0.15);
}

/* Inquire Card */
.inquire-card {
    /* background: var(--primary-color); */
    border-color: rgba(0, 37, 24, 0.6);
}

.inquire-card:hover {
    /* background: var(--primary-color); */
    background: rgba(0, 37, 24, 0.1);
}

.inquire-card .action-icon {
    background: rgba(255, 255, 255, 0.15);
}

/* Product Info Grid */
.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.info-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h4 i {
    font-size: 18px;
    color: var(--accent-color);
}

.info-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-card li {
    padding: 8px 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.info-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 16px;
}

/* Product Description */
.product-description {
    /* border: 1px solid var(--primary-color); */
    border-radius: 8px;
    padding: 20px;
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-description::before {
    display: none;
}

.product-description h4 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    /* gap: 8px; */
}

.product-description h4 i {
    font-size: 18px;
    color: var(--primary-color);
}

.product-description p {
    margin: 0 0 30px 0;
    color: #333;
    font-size: 15px;
    line-height: 1.7;
    text-align: justify;
    font-weight: 500;
}

.product-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.highlight-tag {
    background: var(--primary-color);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}


/* Product Details Tabs */
.product-details-tabs {
    margin-bottom: 50px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-btn.active {
    color: var(--primary-color);
    background: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 30px;
}

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

.tab-content img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.reference-content li a {
    border-radius: 2px;
    padding: 5px;
    border: 1px solid #ccc;
    display: block;
    transition: all 0.3s ease;
}

.reference-content li a:hover {
    border-color: var(--primary-color);
}

.reference-content ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.reference-content li a img {
    width: auto;
    height: 120px;
}

/* Product Specs */
.product-specs {
    display: grid;
    gap: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.spec-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    margin-right: 20px;
}

.spec-value {
    color: #6c757d;
    flex: 1;
}

/* Care Instructions */
.care-instructions {
    text-align: center;
}

.care-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

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

.icon-wrapper {
    width: 50px;
    height: 50px;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.3s ease;
}

.icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-wrapper:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.icon-wrapper i {
    font-size: 24px;
    color: #6c757d;
}

.care-text {
    font-size: 20px;
    font-weight: 400;
    color: #6c757d;
}

.icon-label {
    font-size: 15px;
    color: #6c757d;
    text-align: center;
    line-height: 1.3;
}

.btn-material-info {
    background: var(--primary-color);
    color: #fff;
    margin: 0 auto;
    font-size: 15px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}

.btn-material-info:hover {
    border: none;
}

.reference-content p {
    font-size: 15px;
}

/* Product Variations */
.product-variations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.variation-column {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.variation-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 25px 0;
    text-align: center;
    position: relative;
}

.variation-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.variation-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.variation-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}


.variation-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.variation-item:hover .variation-image {
    transform: scale(1.01);
}

.variation-label {
    font-weight: 600;
    color: #495057;
    font-size: 16px;
}

/* Return Button */
.return-section {
    text-align: center;
    margin-top: 40px;
}

.btn-return {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 30px;
    font-size: 15px;
}

.btn-return:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #bbb;
}

#modalImage {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}


width: 100%;
padding: 8px 15px;
border: 2px solid #e9ecef;
border-radius: 8px;
font-size: 14px;
background: #f8f9fa;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
}

.country-select:hover {
    border-color: var(--primary-color);
    background: white;
}

.country-select.active {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.country-select .selected-text {
    color: #495057;
}

.country-select .arrow {
    transition: transform 0.3s ease;
    color: #6c757d;
}

.country-select.active .arrow {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.country-dropdown.show {
    display: block;
}

.country-option {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f1f1;
}

.country-option:hover {
    background-color: #f8f9fa;
}

.country-option:last-child {
    border-bottom: none;
}

.country-option.selected {
    background-color: #e8f4fd;
    color: var(--primary-color);
    font-weight: 600;
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    height: 50px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.layui-input:focus {
    border-color: var(--primary-color) !important;
}

.layui-textarea:focus {
    border-color: var(--primary-color) !important;
}


/* Image Zoom Modal - 使用view.js */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
}

.image-zoom-modal.show {
    display: flex !important;
}

.zoom-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.zoom-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10001;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10000;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.zoom-close:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .product-title {
        font-size: 2rem;
    }

    .product-variations {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* .tabs-header {
        flex-direction: column;
    } */

    .tab-btn {
        text-align: center;
    }

    .care-icons {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .container {
        padding: 0 15px;
    }



    /* 移動端麵包屑樣式 */
    .breadcrumb {
        font-size: 13px;
    }

    .breadcrumb-item:not(:last-child)::after {
        margin: 0 8px;
    }

    /* 移動端圖片放大模態框樣式 */
    .zoom-close {
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
        padding: 8px;
    }

    .zoom-image {
        max-width: 95%;
        max-height: 95%;
    }

    .main-image-container {
        height: auto;
    }

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

    .product-header p {
        font-size: 18px;
    }

    .product-header {
        margin-bottom: 20px;
    }

    .action-card {
        padding: 15px;
    }

    .action-icon {
        /* width: auto;
        height: auto; */
        margin-right: 10px;
    }

    .product-actions {
        flex-direction: column;
    }

    .action-card {
        width: auto;
    }

    .tab-content {
        padding: 30px 20px;
    }

    .spec-label {
        min-width: 70px;
    }


}

@media (max-width: 480px) {
    .product-detail-section {
        padding: 20px 0;
    }



    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }


    .variation-column {
        padding: 20px;
    }



    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
    }

    /* 小屏幕麵包屑樣式 */
    .breadcrumb {
        font-size: 12px;
        align-items: flex-start;
        gap: 5px;
        flex-wrap: wrap;
    }

    .breadcrumb-item {
        margin-bottom: 2px;
    }

    /* 小屏幕圖片放大模態框樣式 */
    .zoom-close {
        top: 10px;
        right: 10px;
        font-size: 1.3rem;
        padding: 6px;
    }

    .zoom-image {
        max-width: 98%;
        max-height: 98%;
    }
}

.viewer-toolbar>ul {
    margin-bottom: 15px;
}

.viewer-toolbar>ul>li {
    width: 30px;
    height: 30px;
    margin-right: 5px;
}

.viewer-toolbar>ul>li:before {
    margin: 5px;
}

.viewer-backdrop {
    background: rgba(0, 0, 0, 0.6);
}