/* Custom CSS for ZhongTai Keyi Website */

/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: auto !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Layout & Positioning */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-height: 72px;
    position: relative;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 2vw;
}

main, .main-content {
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 1;
    clear: both;
    overflow-x: hidden;
}

section {
    position: relative;
    z-index: 1;
    clear: both;
}

footer {
    margin-top: auto;
    position: relative;
    z-index: 5;
    background-color: var(--dark-color) !important;
}

/* Footer 样式增强 */
.footer-section h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #fff !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ccc !important;
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.contact-info .contact-item i {
    margin-top: 2px;
    min-width: 16px;
}

.quick-contact .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.quick-contact .btn:hover {
    transform: translateY(-1px);
}

.footer-links-inline a {
    color: #fff !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links-inline a:hover {
    color: #ccc !important;
}

.footer-logo {
    /* Ensure footer logo container is visible */
    display: block;
    margin-bottom: 1rem;
}

.footer-logo img {
    /* Logo styling for footer */
    max-height: 40px;
    width: auto;
    opacity: 1;
    display: block;
}

/* Footer 响应式设计 */
@media (max-width: 768px) {
    .footer-section {
        text-align: center;
    }
    
    .contact-info .contact-item {
        justify-content: center;
    }
    
    .quick-contact {
        text-align: center;
    }
    
    .footer-bottom-right {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Containers */
.container-90 {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.container-100 {
    width: 100%;
    height: 700px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 1rem;
    z-index: 1;
    overflow: hidden;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand img {
    height: 48px !important;
    margin-right: 2vw;
}

.site-header nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-header .nav {
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 2vw;
}

.nav-link {
    font-size: 1.25rem;
    font-weight: normal;
    color: #222 !important;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5vw;
    text-decoration: none;
    position: relative;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: #222 !important;
    text-decoration: none;
}

/* 确保下拉菜单导航项与普通导航项样式一致 */
.nav-link.dropdown-toggle {
    font-size: 1.25rem;
    font-weight: normal;
    color: #222 !important;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5vw;
    text-decoration: none;
    position: relative;
}

.nav-link.dropdown-toggle:hover,
.nav-link.dropdown-toggle:focus,
.nav-link.dropdown-toggle.active {
    color: #222 !important;
    text-decoration: none;
}



.site-header .chat-now {
    color: #e53935 !important;
    font-weight: normal;
    border-radius: 2rem;
    background: #fff0f0;
    border: 1.5px solid #e53935;
    padding: 0.5rem 1.5rem;
    margin-left: 1vw;
}

.site-header .chat-now:hover {
    background: #fff0f0;
    color: #e53935 !important;
}

/* Banner & Carousel */
#bannerCarousel,
.carousel,
.carousel-inner {
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
}

.carousel-item {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
    background: transparent;
}

.banner-img,
.carousel-item img,
#bannerCarousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 0;
}

/* Carousel Controls */
#bannerCarousel .carousel-control-prev,
#bannerCarousel .carousel-control-next {
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    width: 5%;
}

#bannerCarousel .carousel-control-prev:hover,
#bannerCarousel .carousel-control-next:hover {
    opacity: 1;
}

#bannerCarousel .carousel-indicators {
    z-index: 10;
    bottom: 20px;
}

#bannerCarousel .carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
}

#bannerCarousel .carousel-indicators button.active {
    background-color: #fff;
    border-color: #fff;
}

/* Dropdown Menus */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-top: 0.25rem;
    min-width: 180px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #222;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #222;
    transform: none;
}



/* Buttons */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-outline-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
}

.category-btn {
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-btn.active {
    background-color: #222 !important;
    border-color: #222 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34,34,34,0.3);
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.product-card,
.service-card,
.industry-card,
.office-card,
.news-card,
.solution-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    background-color: var(--primary-color);
    color: white;
}

.service-card:hover .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Icons */
.service-icon,
.contact-icon,
.industry-icon,
.office-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.industry-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Forms */
.form-control {
    border-radius: 5px;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Pagination */
.pagination .page-link {
    border-radius: 5px;
    margin: 0 2px;
    border: none;
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.strength-item,
.service-item,
.partner-logo,
.case-study,
.industry-card,
.office-card,
.news-card,
.solution-card {
    transition: transform 0.3s ease;
}

.strength-item:hover,
.service-item:hover,
.partner-logo:hover,
.case-study:hover,
.industry-card:hover,
.office-card:hover,
.news-card:hover,
.solution-card:hover {
    transform: translateY(-5px);
}

.partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.service-item:hover {
    background-color: var(--light-color);
}

/* Responsive Design */
@media (max-width: 900px) {
    .header-inner {
        height: 56px;
        padding: 0 1vw;
    }
    
    .navbar-brand img {
        height: 32px !important;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0.7rem;
    }
    
    .site-header .chat-now {
        padding: 0.5rem 1rem;
    }
    
    .container-90 {
        width: 98vw;
    }
    
    .container-100 {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.3rem 0;
        min-height: 18px;
        width: 95%;
    }
    
    .dropdown-menu {
        position: static !important;
        width: 100%;
        box-shadow: none;
        border: 1px solid #e9ecef;
    }
    
    .dropdown-item {
        color: #222;
        padding: 0.75rem 1rem;
    }
    
    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #222;
        transform: none;
    }
    
    .nav {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f8f9fa;
        margin: 0;
        font-size: 1rem;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: -17px;
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 0.5rem 0.5vw;
    }
    
    .navbar-brand img {
        height: 24px !important;
        margin-bottom: 0.5rem;
    }
    
    .site-header nav {
        width: 100%;
    }
    
    .site-header .nav {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 0.4rem 0.5rem;
        margin: 0.1rem 0;
    }
    
    .header-icons {
        margin-top: 0.5rem;
    }
    
    .container-90,
    .container-100 {
        width: 100%;
    }
    
    .container-100 {
        height: 300px;
    }
    
    .site-header,
    .header-inner {
        min-height: auto;
    }
}

/* Utility Classes */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .social-links {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* Product Specifications Styles */
.spec-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.spec-image-container:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.spec-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.spec-image:hover {
    transform: scale(1.05);
}

/* Specifications Table Styles */
.specifications-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-right: 1px solid #dee2e6;
}

.specifications-table td {
    vertical-align: middle;
    color: #212529;
}

/* Technical Details Table Styles - 更紧凑的Key列和折叠的Value列 */
.technical-details-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-right: 1px solid #dee2e6;
    width: 25% !important; /* 更紧凑的Key列 */
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.technical-details-table td {
    vertical-align: middle;
    color: #212529;
    max-width: 0; /* 允许文本折叠 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}

.technical-details-table td:hover {
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    position: relative;
    border-radius: 4px;
    padding: 0.75rem;
}

/* 嵌套表格在Technical Details中的样式 */
.technical-details-table .table {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.technical-details-table .table th {
    width: 30% !important;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-right: 1px solid #dee2e6;
}

.technical-details-table .table td {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    vertical-align: middle;
    color: #212529;
}

/* Technical Specifications Table Styles - 与Technical Details相同的效果 */
.technical-specs-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-right: 1px solid #dee2e6;
    width: 25% !important; /* 更紧凑的Key列 */
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.technical-specs-table td {
    vertical-align: middle;
    color: #212529;
    max-width: 0; /* 允许文本折叠 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}

.technical-specs-table td:hover {
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    position: relative;
    border-radius: 4px;
    padding: 0.75rem;
}

/* 嵌套表格在Technical Specifications中的样式 */
.technical-specs-table .table {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.technical-specs-table .table th {
    width: 30% !important;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

.technical-specs-table .table td {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
}



/* Product Specifications Text Format Styles */
.product-specs-text {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    line-height: 1.6;
    color: #495057;
    font-size: 0.9rem;
    max-height: 120px; /* 约显示3条内容的高度 */
    overflow-y: auto;
}

.product-specs-text p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-line;
}

.product-specs-text p:last-child {
    margin-bottom: 0;
}

/* 优化换行显示 */
.product-specs-text br {
    display: block;
    margin: 0.3rem 0;
}

/* 自定义滚动条样式 */
.product-specs-text::-webkit-scrollbar {
    width: 6px;
}

.product-specs-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.product-specs-text::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.product-specs-text::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 响应式高度控制 */
@media (max-width: 768px) {
    .product-specs-text {
        max-height: 100px; /* 约显示3条内容 */
        font-size: 0.85rem;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .product-specs-text {
        max-height: 90px; /* 约显示3条内容 */
        font-size: 0.8rem;
        padding: 0.8rem;
    }
}

/* Company Introduction Styles */
.company-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #495057;
    font-weight: 500;
}

.intro-content .text-muted {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Product Specifications 模态框样式 */
.product-specs-full {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    line-height: 1.8;
    color: #495057;
    font-size: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.product-specs-full p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

.product-specs-full p:last-child {
    margin-bottom: 0;
}

/* 模态框中的滚动条样式 */
.product-specs-full::-webkit-scrollbar {
    width: 6px;
}

.product-specs-full::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.product-specs-full::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.product-specs-full::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-body {
    padding: 1.5rem;
}

#modalImage {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Product Specifications Section */
.product-specifications-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.spec-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.spec-card .card-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
    padding: 1rem 1.5rem;
}

.spec-card .card-body {
    padding: 1.5rem;
}

/* Specifications Grid Styles */
.specifications-grid {
    position: relative;
}

.spec-module {
    transition: all 0.3s ease;
}

.spec-module:hover {
    transform: translateY(-5px);
}

/* Specification Details Styles */
.spec-details .spec-item {
    border-left: 3px solid #007bff;
    padding-left: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0 8px 8px 0;
    padding: 1rem;
    margin-bottom: 1rem;
}

.spec-label {
    color: #007bff;
    margin-bottom: 0.5rem;
}

.spec-value {
    color: #495057;
    font-size: 1.1rem;
}

/* Specification Overview Styles */
.spec-overview-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.spec-overview-item:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    transform: translateX(5px);
}

.spec-overview-item .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* Responsive Specifications */
@media (max-width: 768px) {
    .spec-image {
        height: 150px;
    }
    
    .specifications-table th,
    .specifications-table td {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Homepage Core Products Layout */
.homepage-products .row {
    justify-content: center;
    align-items: stretch;
}

.homepage-products .product-item {
    margin-bottom: 1.5rem;
}

.homepage-products .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.homepage-products .product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.homepage-products .product-card .card-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.homepage-products .product-card .card-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.homepage-products .product-card .card-img-top {
    padding: 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.homepage-products .product-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.homepage-products .product-card:hover .card-img-top img {
    transform: scale(1.05);
}

/* Responsive adjustments for homepage products */
@media (min-width: 992px) {
    .homepage-products .col-lg-3 {
        flex: 0 0 24%;
        max-width: 24%;
        margin: 0 0.5%;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .homepage-products .col-md-6 {
        flex: 0 0 48%;
        max-width: 48%;
        margin: 0 1%;
    }
}

@media (max-width: 767px) {
    .homepage-products .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 0 1rem 0;
    }
}

/* Products Page Layout */
.products-page .row {
    justify-content: center;
    align-items: stretch;
}

.products-page .product-item {
    margin-bottom: 1.5rem;
}

.products-page .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.products-page .product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.products-page .product-card .card-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.products-page .product-card .card-img-top {
    padding: 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.products-page .product-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.products-page .product-card:hover .card-img-top img {
    transform: scale(1.05);
}

/* Responsive adjustments for products page */
@media (min-width: 992px) {
    .products-page .col-lg-3 {
        flex: 0 0 24%;
        max-width: 24%;
        margin: 0 0.5%;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .products-page .col-md-6 {
        flex: 0 0 48%;
        max-width: 48%;
        margin: 0 1%;
    }
}

@media (max-width: 767px) {
    .products-page .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 0 1rem 0;
    }
} 