/* ============================================
   ENDOSCOPE PARTS PAGE STYLES
   Add this as parts-style.css
   Uses same color scheme as main site
   ============================================ */

/* ============================================
   PAGE HEADER SECTION
   ============================================ */

/* Header section at top of parts page - navy background */
.page-header {
    background: #2d3a4a; /* Navy background */
    color: #ffffff;
    padding: 4rem 2rem 3rem 2rem;
    text-align: center;
}

/* Main page heading */
.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #ffffff;
}

/* Introduction paragraph under heading */
.page-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.95;
}

.page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

/* Main content container with padding */
.parts-content {
    padding: 3rem 0;
    background: #ffffff;
}

.parts-content .container {
  max-width: 1100px;
}

/* ============================================
   PRODUCT CATEGORIES
   ============================================ */

/* Each product category section - separated with spacing */
.product-category {
    margin-bottom: 4rem;
}

/* Category title - subtle but visible separation */
.category-title {
    font-size: 1.8rem;
    color: #1787ac; /* Primary brand color */
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e5e5; /* Light gray separator line */
    font-weight: 600;
}

/* Subcategory title - smaller, appears under category line */
.subcategory-title {
    font-size: 1.2rem;
    color: #2d3a4a; /* Navy color */
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid #3b89ae; /* CTA blue accent line */
    font-weight: 500;
}

/* Add spacing between subcategories */
.subcategory-section {
    margin-bottom: 3rem;
}

/* ============================================
   PRODUCT GRID
   ============================================ */

/* Grid container for product cards - responsive columns */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Auto-fits cards, minimum 320px wide */
    gap: 2rem; /* Space between cards */
    margin-bottom: 2rem;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

/* Individual product card - compact and clean design */
.product-card {
    background: #ffffff;
    border: 1px solid #e5e5e5; /* Subtle border */
    border-radius: 8px;
    overflow: hidden; /* Keeps image corners clean */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* Subtle shadow */
}

/* Card hover effect - gentle lift */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #3b89ae; /* CTA color on hover */
}

/* ============================================
   PRODUCT IMAGE SECTION
   ============================================ */

/* Image container - fixed aspect ratio */
.product-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    overflow: hidden;
    background: #f8f9fa; /* Light gray placeholder background */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product image styling */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills container while maintaining aspect ratio */
    transition: transform 0.3s ease;
}

/* Image zoom effect on card hover */
.product-card:hover .product-image img {
    transform: scale(1.05); /* Subtle zoom */
}

/* Placeholder for products without images */
.placeholder-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    color: #999999;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

/* ============================================
   PRODUCT INFORMATION SECTION
   ============================================ */

/* Info section below image - contains name, details, and CTA */
.product-info {
    padding: 1.5rem;
}

/* Product name heading */
.product-name {
    font-size: 1.3rem;
    color: #2d3a4a; /* Navy color */
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ============================================
   PRODUCT DETAILS ROWS
   ============================================ */

/* Container for all detail rows */
.product-details {
    margin-bottom: 1.25rem;
}

/* Individual detail row - label and value pair */
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0; /* Very subtle divider between rows */
    font-size: 0.95rem;
}

/* Remove border from last detail row */
.detail-row:last-child {
    border-bottom: none;
}

/* Label on left side (Type:, Material:, etc.) */
.detail-label {
    font-weight: 600;
    color: #2d3a4a; /* Navy color */
    flex-shrink: 0; /* Prevents label from shrinking */
    margin-right: 1rem;
}

/* Value on right side */
.detail-value {
    color: #2d2d2d; /* Dark gray */
    text-align: right;
}

/* Secondary info text in detail values */
.detail-note {
    display: block;
    font-size: 0.8rem;
    color: #666666;
    margin-top: 0.25rem;
    font-weight: normal;
}

/* ============================================
   PRODUCT CTA BUTTON
   ============================================ */

/* Request Quote button at bottom of each card */
.product-cta {
    display: inline-block;
    background: #3b89ae; /* CTA blue color */
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* CTA button hover effect */
.product-cta:hover {
    background: #1787ac; /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 137, 174, 0.3);
}

/* ============================================
   SHOW MORE/LESS FUNCTIONALITY
   ============================================ */

/* Hide products after the 6th one by default */
.product-grid.collapsed .product-card:nth-child(n+7) {
    display: none;
}

/* Show More/Less button styling */
.show-more-btn {
    display: block;
    margin: 2rem auto 0 auto;
    padding: 0.75rem 2rem;
    background: #3b89ae; /* CTA blue */
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: #1787ac;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 137, 174, 0.3);
}

/* Hide button if not needed */
.show-more-btn.hidden {
    display: none;
}



/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */

/* Two columns for tablets */
@media (max-width: 1024px) and (min-width: 601px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */

/* Single column for mobile */
@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .product-info {
        padding: 1.25rem;
    }
    
    .product-name {
        font-size: 1.15rem;
    }
    
    .detail-row {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
}

/* ============================================
   UTILITY - Product Image Placeholders
   ============================================ */

/* Styling for when product images are missing/loading */
.product-image:empty::before {
    content: 'Product Image';
    color: #999999;
    font-size: 0.9rem;
}
