/* Product Details Page Styles */
/* Shared styles for all product detail pages */

/* Main Container */
.product-details-container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    background: #fff;
}

/* Page Header */
.product-details-header {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.product-details-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/heroBackGround.JPG') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.product-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-to-equipment {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.back-to-equipment:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

.product-details-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.product-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-action-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.header-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

/* Main Content */
.product-details-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Tab System (for ROV page) */
.product-tab-system {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-tab-headers {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.product-tab-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #666;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid transparent;
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

.product-tab-header.active {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.product-tab-header:hover {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
}

.product-tab-content {
    flex: 1;
}

.product-tab-panel {
    display: none;
}

.product-tab-panel.active {
    display: block;
}

/* Product Detail Content */
.product-detail-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Hero Section with Carousel */
.product-hero-section {
    position: relative;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.carousel-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    font-size: 4rem;
    border-radius: 10px;
}

/* Carousel Controls */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    font-size: 1.2rem;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 15px;
    border-radius: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #FF6B35;
    transform: scale(1.2);
}

/* Product Sections */
.product-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-section h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    border-bottom: 3px solid #FF6B35;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-section h4 i {
    color: #FF6B35;
    font-size: 1.5rem;
}

/* Price Display */
.product-price-display {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 15px;
    border: 2px solid #FF6B35;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: #FF6B35;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Actions */
.product-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.add-to-quote-btn,
.action-btn {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    text-decoration: none;
}

.add-to-quote-btn:hover,
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}

.action-btn.secondary {
    background: #fff;
    color: #FF6B35;
    border: 2px solid #FF6B35;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
}

.action-btn.secondary:hover {
    background: #FF6B35;
    color: white;
}

/* Quote Info */
.quote-info {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 10px;
    border-left: 4px solid #FF6B35;
}

.quote-info p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-info i {
    color: #FF6B35;
    font-size: 1.1rem;
}

/* Technical Specifications */
.technical-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-2px);
}

.spec-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.spec-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.spec-content p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    color: #4CAF50;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

/* Models/Tools Grid */
.models-grid,
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.model-item,
.tool-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.model-item:hover,
.tool-item:hover {
    transform: translateY(-2px);
}

.model-item h5,
.tool-item h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.model-item p,
.tool-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Single Product Layout (for pages without tabs) */
.single-product-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .product-details-title {
        font-size: 2rem;
    }
    
    .technical-specs {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .product-details-header {
        padding: 30px 0;
    }
    
    .product-details-title {
        font-size: 1.8rem;
    }
    
    .product-details-main {
        padding: 40px 15px;
    }
    
    .product-hero-section {
        height: 350px;
    }
    
    .product-tab-headers {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-tab-header {
        min-width: auto;
        flex: none;
    }
    
    .product-section {
        padding: 25px;
    }
    
    .product-section h4 {
        font-size: 1.5rem;
    }
    
    .technical-specs {
        grid-template-columns: 1fr;
    }
    
    .models-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .add-to-quote-btn,
    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-arrow.prev { left: 10px; }
    .carousel-arrow.next { right: 10px; }
}

@media (max-width: 480px) {
    .product-details-title {
        font-size: 1.5rem;
    }
    
    .product-hero-section {
        height: 300px;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .back-to-equipment,
    .header-action-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .carousel-container {
        padding: 15px;
    }
    
    .spec-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .spec-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Loading Screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading.hidden {
    display: none !important;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF6B35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .product-details-header {
        background: none !important;
        color: #000 !important;
    }
    
    .back-to-equipment,
    .header-action-btn,
    .add-to-quote-btn,
    .action-btn,
    .carousel-arrow,
    .carousel-dots {
        display: none !important;
    }
    
    .product-carousel {
        height: 300px !important;
    }
    
    .carousel-slide {
        position: static !important;
        opacity: 1 !important;
        padding: 0 !important;
    }
    
    .carousel-slide:not(.active) {
        display: none !important;
    }
}

/* Hand Tools Specific Styles */
.tool-selection-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.selection-guide-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.selection-guide-item:hover {
    transform: translateY(-2px);
}

.guide-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-icon i {
    color: white;
    font-size: 1.2rem;
}

.guide-content h5 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-weight: 600;
}

.guide-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tools-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tool-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.tool-image {
    position: relative;
    min-height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    max-height: 300px;
}

.tool-card:hover .tool-image img {
    transform: scale(1.05);
}

.tool-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #666;
    font-size: 2rem;
}

.tool-details {
    padding: 25px;
}

.tool-details h5 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
}

.tool-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tool-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-badge.material {
    background: #e3f2fd;
    color: #1976d2;
}

.tool-badge.material.soft {
    background: #f3e5f5;
    color: #7b1fa2;
}

.tool-badge.technique {
    background: #fff3e0;
    color: #f57c00;
}

.tool-details p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.tool-specs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.tool-specs .spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.9rem;
}

.tool-specs .spec-item i {
    color: #FF6B35;
    width: 16px;
    text-align: center;
}

.tool-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.tool-actions .add-to-quote-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tool-actions .add-to-quote-btn:hover {
    background: linear-gradient(135deg, #F7931E, #FF6B35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.tool-actions .add-to-quote-btn:active {
    transform: translateY(0);
}

/* Responsive adjustments for hand tools */
@media (max-width: 768px) {
    .tools-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tool-selection-guide {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .tool-card {
        margin: 0 10px;
    }
    
    .tool-details {
        padding: 20px;
    }
    
    .tool-image {
        min-height: 180px;
    }
    
    .tool-image img {
        max-height: 250px;
    }
}