/* ========================================
 * SHARED PRODUCT CARD STYLES
 * ========================================
 * 
 * Consolidated styles for product cards used across:
 * - Search results page
 * - Product detail pages
 * - Part detail pages  
 * - Solution detail pages
 * - Industry detail pages
 * - Case study detail pages
 * 
 * Note: Article cards have different styling and are not included here
 */

/* ==========================================================================
   PRODUCT CARD BASE STYLES
   ========================================================================== */

.search-result-card { 
    background: #fff; 
    border-radius: 10px; 
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); 
    padding: 1.5rem; 
    display: flex; 
    gap: 1.5rem; 
    align-items: flex-start; 
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.search-result-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); 
    transform: translateY(-2px); 
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   PRODUCT CARD IMAGE STYLES
   ========================================================================== */

.search-result-image {
    flex: 0 0 200px; 
    max-width: 150px; 
    max-height: 150px; 
    width: 150px; 
    height: 150px; 
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
}

.search-result-image img {
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    border: none !important;
    outline: none !important;
}

/* ==========================================================================
   PRODUCT CARD CONTENT STYLES
   ========================================================================== */

.search-result-info { 
    flex: 1; 
}

.search-result-title { 
    font-size: 1.1rem; 
    margin-bottom: 0.5rem; 
    color: #186396; 
    font-weight: 600; 
}

.search-result-title a {
    color: #186396 !important;
    text-decoration: none;
}

.search-result-title a:hover {
    color: #186396 !important;
    text-decoration: none;
}

.search-result-excerpt { 
    color: #333; 
    line-height: 1.6; 
    margin-bottom: 1rem; 
    font-weight: 400; 
}

/* ==========================================================================
   ARROW LINKS & NAVIGATION
   ========================================================================== */

.product-arrow-link i,
.part-arrow-link i,
.article-arrow-link i { 
    color: #186396; 
    font-size: 1.2rem; 
    transition: transform 0.3s ease; 
    background: #fff;
    padding: 8px;
    border-radius: 50%;
    display: inline-block;
}

.product-arrow-link,
.part-arrow-link,
.article-arrow-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.product-arrow-link .fa-arrow-up.product-arrow-up,
.part-arrow-link .fa-arrow-up.part-arrow-up,
.article-arrow-link .fa-arrow-up.article-arrow-up,
.search-results-list .search-result-card .product-arrow-up { 
    transform: rotate(45deg); 
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .search-result-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-result-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        height: 0;
        padding-bottom: 100%; /* Creates square ratio */
        position: relative;
    }
    
    .search-result-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        max-width: 100% !important;
        max-height: 100% !important;
    }
        
    .search-result-title {
        font-size: 1rem;
    }
}

.products-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) { 
    .products-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) { 
    .products-list {
        grid-template-columns: 1fr;
    }
    
    .search-results-tabs {
        display: none;
    }
    .search-results-section-header {
        margin-top: 40px;
    }
}

.case-study-main-content li {
    list-style: disc;
    padding-left: 10px;
    margin-left: 20px;
}