/* Hot Products Section */
.hot-products-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.hot-products-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.hot-products-subtitle {
    font-size: 1rem;
    color: #718096;
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hot-products-more-btn {
    background-color: #1e3a5f;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hot-products-more-btn:hover {
    background-color: #1a3354;
    color: white;
}

/* Responsive adjustments for Hot Products titles */
@media (max-width: 1200px) {
    .hot-products-section {
        padding: 2.5rem 0;
    }
    
    .hot-products-title {
        font-size: 1.75rem;
        letter-spacing: 0;
        margin-bottom: 0.875rem;
    }
    
    .hot-products-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.75rem;
        padding: 0 1rem;
        line-height: 1.45;
    }
}

@media (max-width: 576px) {
    .hot-products-title {
        font-size: 1.5rem;
    }
    
    .hot-products-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        line-height: 1.4;
    }
}

        /* Product Card - EXACT Copy from products.php */
        .product-card {
            background: #ffffff;
            border: none;
            border-radius: 0;
            overflow: hidden;
            transition: none;
            height: 400px;
            display: flex;
            flex-direction: column;
            box-shadow: none;
            font-family: Arial, sans-serif;
            max-width: 280px;
            margin: 0 auto;
            width: 100%;
            box-sizing: border-box;
        }
        
        .product-image {
            position: relative;
            height: 220px;
            overflow: hidden;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border-radius: 12px;
        }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: none;
            border-radius: 12px;
        }
        
        .product-image .placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8f9fa;
            color: #6c757d;
            font-size: 3rem;
        }
        
        .product-content {
            padding: 14px;
            flex: 1;
            display: flex;
            flex-direction: column;
            text-align: left;
            width: 100%;
            box-sizing: border-box;
        }
        
        .product-title {
            font-size: 15px;
            font-weight: bold;
            color: #000000;
            margin: 0 0 10px 0;
            line-height: 1.2;
            text-transform: uppercase;
            letter-spacing: 0px;
            font-family: Arial, sans-serif;
            height: 36px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            width: 100%;
            box-sizing: border-box;
        }
        
        .product-description {
            color: #555555;
            font-size: 12px;
            line-height: 1.4;
            margin-bottom: 14px;
            text-align: left;
            font-family: Arial, sans-serif;
            height: 48px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            -webkit-box-orient: vertical;
        }
        
        .stock-availability {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding: 0;
        }
        
        .stock-label {
            font-weight: normal;
            color: #333333;
            font-size: 13px;
            font-family: Arial, sans-serif;
        }
        
        .stock-status {
            font-weight: normal;
            font-size: 13px;
            font-family: Arial, sans-serif;
        }
        
        .stock-in {
            color: #00A86B;
        }
        
        .stock-out {
            color: #dc3545;
        }

        .stock-discontinued {
            color: #6c757d;
        }
        
        .product-actions {
            display: flex;
            flex-direction: row;
            gap: 8px;
            margin-top: auto;
            width: 100%;
            box-sizing: border-box;
            padding: 0;
            flex-wrap: nowrap;
            align-items: center;
        }
        
        .btn-get-quote {
            flex: 1;
            background-color: #1e3a5f;
            color: white;
            border: 1px solid #1e3a5f;
            padding: 8px 12px;
            font-weight: normal;
            font-size: 12px;
            text-transform: none;
            letter-spacing: normal;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 3px;
            font-family: Arial, sans-serif;
            transition: background-color 0.2s ease;
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
            min-width: 0;
            max-width: none;
            box-sizing: border-box;
            min-height: 40px;
            height: auto;
            word-break: break-word;
            text-align: center;
        }
        
        .btn-get-quote:hover {
            background-color: #1a3354;
            color: white;
        }
        
        .btn-more-details {
            flex: 1;
            background-color: transparent;
            color: #1e3a5f;
            border: 1px solid #1e3a5f;
            padding: 8px 12px;
            font-weight: normal;
            font-size: 12px;
            text-transform: none;
            letter-spacing: normal;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 3px;
            font-family: Arial, sans-serif;
            transition: all 0.2s ease;
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
            min-width: 0;
            max-width: none;
            box-sizing: border-box;
            min-height: 40px;
            height: auto;
            word-break: break-word;
            text-align: center;
        }
        
        .btn-more-details:hover {
            background-color: #1e3a5f;
            color: white;
        }
        
        /* Remove old button styles */
        .btn-product-view,
        .btn-quote {
            display: none;
        }
        
        /* Mobile responsiveness for product cards */
        @media (max-width: 1200px) {
            .product-card {
                margin: 0;
                max-width: none;
                height: 400px;
                width: 100%;
                box-sizing: border-box;
            }
            
            .product-image {
                height: 160px;
            }
            
            .product-content {
                padding: 12px;
            }
            
            .product-title {
                font-size: 14px;
                height: 32px;
                -webkit-line-clamp: 2;
            }
            
            .product-description {
                font-size: 12px;
                height: 54px;
                -webkit-line-clamp: 3;
                line-height: 1.5;
            }
            
            .product-actions {
                flex-direction: row;
                gap: 6px;
                flex-wrap: nowrap;
            }
            
            .btn-get-quote,
            .btn-more-details {
                flex: 1;
                width: auto;
                padding: 6px 4px;
                font-size: 10px;
                white-space: normal;
                overflow: visible;
                text-overflow: clip;
                min-height: 36px;
                min-width: 0;
                max-width: none;
                word-break: break-word;
                text-align: center;
            }
            
            .stock-label,
            .stock-status {
                font-size: 12px;
            }
            
            .stock-availability {
                margin-bottom: 12px;
            }
        }
        
        /* 超小屏幕优化 - 两列布局 */
        @media (max-width: 576px) {
            .row.g-4 {
                --bs-gutter-x: 1rem;
                --bs-gutter-y: 1.5rem;
            }
            
            .product-card {
                height: 380px;
                font-size: 11px;
                width: 100%;
                box-sizing: border-box;
            }
            
            .product-image {
                height: 140px;
            }
            
            .product-content {
                padding: 10px;
            }
            
            .product-title {
                font-size: 13px;
                height: 30px;
                margin-bottom: 8px;
            }
            
            .product-description {
                font-size: 11px;
                height: 48px;
                margin-bottom: 10px;
                line-height: 1.4;
                -webkit-line-clamp: 3;
            }
            
            .btn-get-quote,
            .btn-more-details {
                padding: 6px 8px;
                font-size: 10px;
                min-width: 0;
                max-width: 50%;
                white-space: normal;
                overflow: visible;
                text-overflow: clip;
                word-break: break-word;
                text-align: center;
            }
            
            .stock-availability {
                margin-bottom: 10px;
            }
            
            .stock-label,
            .stock-status {
                font-size: 11px;
            }
        }
         
         /* CRITICAL: Override ALL conflicting styles with !important */
         .hot-products-section .product-card {
             background: #ffffff !important;
             border: none !important;
             border-radius: 0 !important;
             overflow: hidden !important;
             transition: none !important;
             height: 400px !important;
             display: flex !important;
             flex-direction: column !important;
             box-shadow: none !important;
             font-family: Arial, sans-serif !important;
             max-width: 280px !important;
             margin: 0 auto !important;
         }
         
         .hot-products-section .product-image {
             position: relative !important;
             height: 220px !important;
             overflow: hidden !important;
             background: #ffffff !important;
             display: flex !important;
             align-items: center !important;
             justify-content: center !important;
             padding: 0 !important;
             border-radius: 12px !important;
         }
         
         .hot-products-section .product-image img {
             width: 100% !important;
             height: 100% !important;
             object-fit: cover !important;
             transition: none !important;
             border-radius: 12px !important;
         }
         
         .hot-products-section .product-content {
             padding: 14px !important;
             flex: 1 !important;
             display: flex !important;
             flex-direction: column !important;
             text-align: left !important;
         }
         
         .hot-products-section .product-title {
             font-size: 15px !important;
             font-weight: bold !important;
             color: #000000 !important;
             margin: 0 0 10px 0 !important;
             line-height: 1.2 !important;
             text-transform: uppercase !important;
             letter-spacing: 0px !important;
             font-family: Arial, sans-serif !important;
             height: 36px !important;
             overflow: hidden !important;
             display: -webkit-box !important;
             -webkit-line-clamp: 2 !important;
             line-clamp: 2 !important;
             -webkit-box-orient: vertical !important;
         }
         
         .hot-products-section .product-description {
             color: #555555 !important;
             font-size: 12px !important;
             line-height: 1.4 !important;
             margin-bottom: 14px !important;
             text-align: left !important;
             font-family: Arial, sans-serif !important;
             height: 48px !important;
             overflow: hidden !important;
             display: -webkit-box !important;
             -webkit-line-clamp: 3 !important;
             line-clamp: 3 !important;
             -webkit-box-orient: vertical !important;
         }
         
         .hot-products-section .stock-availability {
             display: flex !important;
             justify-content: space-between !important;
             align-items: center !important;
             margin-bottom: 16px !important;
             padding: 0 !important;
         }
         
         .hot-products-section .stock-label {
             font-weight: normal !important;
             color: #333333 !important;
             font-size: 13px !important;
             font-family: Arial, sans-serif !important;
         }
         
         .hot-products-section .stock-status {
             font-weight: normal !important;
             font-size: 13px !important;
             font-family: Arial, sans-serif !important;
         }
         
         .hot-products-section .stock-in {
             color: #00A86B !important;
         }
         
         .hot-products-section .product-actions {
             display: flex !important;
             flex-direction: row !important;
             gap: 8px !important;
             margin-top: auto !important;
             width: 100% !important;
             box-sizing: border-box !important;
             padding: 0 !important;
             flex-wrap: nowrap !important;
         }
         
         .hot-products-section .btn-get-quote {
             flex: 1 !important;
             background-color: #1e3a5f !important;
             color: white !important;
             border: 1px solid #1e3a5f !important;
             padding: 8px 6px !important;
             font-weight: normal !important;
             font-size: 11px !important;
             text-transform: none !important;
             letter-spacing: normal !important;
             text-decoration: none !important;
             display: inline-flex !important;
             align-items: center !important;
             justify-content: center !important;
             border-radius: 3px !important;
             font-family: Arial, sans-serif !important;
             transition: background-color 0.2s ease !important;
             height: auto !important;
             line-height: 1.1 !important;
             white-space: normal !important;
             min-width: 0 !important;
             max-width: none !important;
             overflow: visible !important;
             text-overflow: clip !important;
             box-sizing: border-box !important;
             word-break: break-word !important;
             text-align: center !important;
         }
         
         .hot-products-section .btn-get-quote:hover {
             background-color: #1a3354 !important;
             color: white !important;
         }
         
         .hot-products-section .btn-more-details {
             flex: 1 !important;
             background-color: transparent !important;
             color: #1e3a5f !important;
             border: 1px solid #1e3a5f !important;
             padding: 8px 6px !important;
             font-weight: normal !important;
             font-size: 11px !important;
             text-transform: none !important;
             letter-spacing: normal !important;
             text-decoration: none !important;
             display: inline-flex !important;
             align-items: center !important;
             justify-content: center !important;
             border-radius: 3px !important;
             font-family: Arial, sans-serif !important;
             transition: all 0.2s ease !important;
             height: auto !important;
             line-height: 1.1 !important;
             white-space: normal !important;
             min-width: 0 !important;
             max-width: none !important;
             overflow: visible !important;
             text-overflow: clip !important;
             box-sizing: border-box !important;
             word-break: break-word !important;
             text-align: center !important;
         }
         
         .hot-products-section .btn-more-details:hover {
             background-color: #1e3a5f !important;
             color: white !important;
         }
         
         /* Override Bootstrap and other framework styles */
         .hot-products-section .btn,
         .hot-products-section .btn:focus,
         .hot-products-section .btn:active {
             font-weight: normal !important;
             border-radius: 3px !important;
             letter-spacing: normal !important;
             text-transform: none !important;
             box-shadow: none !important;
             outline: none !important;
         }
         
         /* Override any hover transforms */
         .hot-products-section .btn:hover,
         .hot-products-section .btn-get-quote:hover,
         .hot-products-section .btn-more-details:hover {
             transform: none !important;
         }
         
         /* Ensure Bahasa Malaysia text fits properly */
         .hot-products-section .btn-get-quote[data-i18n="hot_products.get_quote"] {
             min-width: 0 !important;
             max-width: 50% !important;
             padding: 6px 4px !important;
             font-size: 10px !important;
             line-height: 1.1 !important;
         }
         
         /* Mobile optimization for BM text */
         @media (max-width: 768px) {
             .hot-products-section .product-actions {
                 display: flex !important;
                 flex-direction: row !important;
                 gap: 8px !important;
                 flex-wrap: nowrap !important;
             }

             .hot-products-section .btn-get-quote,
             .hot-products-section .btn-more-details {
                 flex: 1 !important;
                 padding: 6px 4px !important;
                 font-size: 10px !important;
                 white-space: normal !important;
                 max-width: none !important;
                 overflow: visible !important;
                 text-overflow: clip !important;
                 word-break: break-word !important;
                 text-align: center !important;
             }
         }
         
         @media (max-width: 576px) {
             .hot-products-section .btn-get-quote[data-i18n="hot_products.get_quote"] {
                 min-width: 0 !important;
                 max-width: 50% !important;
                 font-size: 10px !important;
                 padding: 6px 4px !important;
             }
         }