/* E-commerce Style Product Details */
.product-details {
    padding: 80px 0;
    background: #f8f9fa;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb a {
    color: #2c5aa0;
    text-decoration: none;
}

.product-layout {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Left Thumbnails */
.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumb-item {
    width: 70px;
    height: 70px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb-item.active {
    border-color: #2c5aa0;
    box-shadow: 0 0 10px rgba(44, 90, 160, 0.3);
}

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

/* Main Image */
.product-main-image {
    position: relative;
    text-align: center;
}

#main-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.btn-360 {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(135deg, #2c5aa0, #ff6b35);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 10;
}

.btn-360:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 3D Model Container */
#model-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-viewer {
    position: relative;
    width: 90vw;
    height: 90vh;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

#3d-canvas {
    width: 100%;
    height: 100%;
}

.close-3d {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff4444;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #666;
}

/* Product Info */
.product-info h1 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 10px;
}

.category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 15px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.product-specs {
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.spec-item strong {
    color: #333;
}

.btn-contact {
    background: linear-gradient(135deg, #2c5aa0, #ff6b35);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-details {
        padding: 40px 0;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .product-thumbnails {
        flex-direction: row;
        justify-content: center;
        order: 2;
        overflow-x: auto;
        padding: 10px 0;
    }
    
    .thumb-item {
        min-width: 60px;
        height: 60px;
    }
    
    .product-main-image {
        order: 1;
        position: static;
    }
    
    #main-image {
        max-height: 300px;
    }
    
    .btn-360 {
        position: static;
        margin: 15px auto 0;
        display: block;
        width: fit-content;
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .btn-360 i {
        font-size: 12px;
        margin-right: 4px;
    }
    
    .product-info {
        order: 3;
    }
    
    .product-info h1 {
        font-size: 1.8rem;
    }
    
    .model-viewer {
        width: 95vw;
        height: 80vh;
    }
    
    .close-3d {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .product-layout {
        padding: 15px;
    }
    
    .product-info h1 {
        font-size: 1.5rem;
    }
    
    .btn-contact {
        width: 100%;
        padding: 12px 20px;
    }
    
    .btn-360 {
        margin: 10px auto 0;
        padding: 6px 14px;
        font-size: 11px;
        border-radius: 18px;
    }
    
    .btn-360 i {
        font-size: 11px;
        margin-right: 3px;
    }
    
    .model-viewer {
        width: 98vw;
        height: 75vh;
    }
    
    #main-image {
        max-height: 250px;
    }
}