/* Google Fonts - Inter */
:root {
    --primary-color: #0033A0; /* Regal Rexnord Blue */
    --secondary-color: #1A1A1A; /* Dark almost black */
    --accent-color: #E21833; /* Industrial Red for accents/alerts */
    --light-bg: #F5F7FA;
    --white: #FFFFFF;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.text-light { color: var(--white); }
.bg-light { background-color: var(--light-bg); }
.flex-center { display: flex; justify-content: center; align-items: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #002277;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #ffd700;
}

.top-bar-contact a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-contact a:hover {
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2c3e50 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Pattern overlay placeholder */
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    gap: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-item i {
    color: var(--primary-color);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.check-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--secondary-color);
}

.check-list i {
    color: var(--primary-color);
}

.about-image {
    position: relative;
}

.glass-effect {
    background: linear-gradient(135deg, rgba(0, 51, 160, 0.1) 0%, rgba(26, 26, 26, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.brand-showcase h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.brand-tags span {
    background-color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.brand-tags span:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Features/Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.bg-gradient-blue { background: linear-gradient(135deg, #0033A0 0%, #001f60 100%); }
.bg-gradient-dark { background: linear-gradient(135deg, #1A1A1A 0%, #434343 100%); }
.bg-gradient-accent { background: linear-gradient(135deg, #E21833 0%, #a01020 100%); }

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.link-text {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card:hover .link-text i {
    transform: translateX(5px);
}

.link-text i {
    transition: transform 0.3s ease;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #002277 100%);
    color: var(--white);
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Internal Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2c3e50 100%);
    padding: 100px 0 80px;
    color: var(--white);
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.page-header.relative-slider {
    background: #1A1A1A; /* Fallback */
}

/* Slider Overlays */
.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: slideFade 25s infinite;
    z-index: 0;
}

.slider-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Dark overlay for text readability */
}

.slide-1 { animation-delay: 0s; }
.slide-2 { animation-delay: 5s; }
.slide-3 { animation-delay: 10s; }
.slide-4 { animation-delay: 15s; }
.slide-5 { animation-delay: 20s; }

@keyframes slideFade {
    0% { opacity: 0; transform: scale(1.05); }
    4% { opacity: 1; transform: scale(1.04); }
    20% { opacity: 1; transform: scale(1.0); }
    24% { opacity: 0; transform: scale(0.99); }
    100% { opacity: 0; transform: scale(0.99); }
}

.page-header-content {
    position: relative;
    z-index: 10;
}

.page-header h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.breadcrumb {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
}

/* Products Page specific */
.category-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-section:nth-child(even) {
    background-color: var(--light-bg);
}

.category-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.category-info h2 {
    font-size: 2rem;
}

/* Contact Page Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

/* Why Choose Us - Zig Zag Section */
.zigzag-section {
    padding: 80px 0;
    background: #fdfdfd;
}

.zigzag-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 80px;
    gap: 50px;
}

.zigzag-block:last-child {
    margin-bottom: 0;
}

.zigzag-block.reverse {
    flex-direction: row-reverse;
}

.zigzag-img-col {
    flex: 1 1 40%;
}

.zigzag-img-col img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.zigzag-text-col {
    flex: 1 1 50%;
}

.zigzag-text-col h3 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.zigzag-text-col p {
    color: var(--dark-color);
    font-size: 1.15rem;
    line-height: 1.8;
}

@media (max-width: 992px) {
    .zigzag-block {
        flex-direction: column !important;
        gap: 30px;
        margin-bottom: 50px;
    }
    .zigzag-img-col, .zigzag-text-col {
        width: 100%;
        flex: 1 1 100%;
    }
    .zigzag-img-col img {
        height: 350px;
    }
}


.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: #111111;
    color: #aaaaaa;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.brand-col .logo-text {
    color: var(--white);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: #aaaaaa;
}

.footer-col ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-list i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .about-grid, .category-content, .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide default nav for mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        padding: 20px;
        text-align: center;
    }
    .nav-links.show {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-title { font-size: 2.2rem; }
    .hero-features { flex-direction: column; gap: 15px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Products Page Grid Layout */
.products-page-container {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.products-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

.product-category-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-category-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.product-category-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 4px;
}

.product-category-box h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-category-text {
    flex-grow: 1;
    margin-bottom: 25px;
}

.product-category-text .subtitle {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.product-category-text p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.product-category-box .btn {
    align-self: flex-start;
}

/* Couplings Catalog Page Styles */

.couplings-grid, .catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.coupling-card, .catalog-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.coupling-card:hover, .catalog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.coupling-img, .catalog-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 4px;
    padding: 15px;
    box-sizing: border-box;
}

.coupling-card h3, .catalog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.coupling-card p, .catalog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.coupling-actions, .catalog-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    width: 100%;
}

/* Modal Viewer Styles */
.pdf-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
}

.pdf-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out forwards;
}

.pdf-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-modal-header {
    background: var(--light-bg);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.pdf-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-modal {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
}

.pdf-container {
    flex-grow: 1;
    width: 100%;
    height: 100%;
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Selector Modal Styles */
.selector-modal-content {
    background-color: var(--light-bg);
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 25px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.selector-modal-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--white);
    max-height: 70vh;
    overflow-y: auto;
}

.catalog-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--secondary-color);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: left;
}

.catalog-link-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.catalog-link-btn i {
    font-size: 1.2rem;
}

/* Part Number Search Page */
.part-search-section {
    background-color: var(--light-bg);
}

/* Expand container width for part search section */
.part-search-section .container {
    max-width: 1440px;
    width: 95%;
    padding: 0 15px;
}

.search-input-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto 30px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
}

#partSearchInput {
    width: 100%;
    padding: 18px 20px 18px 50px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

#partSearchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 51, 160, 0.1);
}

.filter-wrapper {
    max-width: 800px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: flex-end;
}

.filter-select {
    width: auto;
    min-width: 250px;
    padding: 10px 15px;
    background-color: var(--white);
}

.table-responsive {
    overflow-x: auto;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.part-catalog-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem; /* Reduced font size throughout table */
}

.part-catalog-table th {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 14px; /* Reduced vertical & horizontal padding */
    font-weight: 600;
    font-size: 0.875rem; /* Compact header text */
    white-space: nowrap;
}

.part-catalog-table td {
    padding: 10px 14px; /* Reduced vertical & horizontal padding */
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.part-catalog-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.part-catalog-table tbody tr:hover {
    background-color: rgba(0, 51, 160, 0.05);
}

.part-catalog-table .fw-bold {
    font-weight: 600;
}

.part-catalog-table .text-primary {
    color: var(--primary-color);
}

/* Part Number Column Alignment & Formatting */
.part-catalog-table td:nth-child(1) {
    white-space: nowrap; /* Prevent part numbers from wrapping */
    font-weight: 600;
    color: var(--primary-color);
}

/* Center technical specifications for clean, structured industrial look */
.part-catalog-table th:nth-child(4), .part-catalog-table td:nth-child(4), /* Max Bore */
.part-catalog-table th:nth-child(5), .part-catalog-table td:nth-child(5), /* Max Torque */
.part-catalog-table th:nth-child(6), .part-catalog-table td:nth-child(6), /* Dimensions */
.part-catalog-table th:nth-child(7), .part-catalog-table td:nth-child(7)  /* Weight */ {
    text-align: center;
    white-space: nowrap;
}

/* Action column alignment and button styling */
.part-catalog-table th:nth-child(8), .part-catalog-table td:nth-child(8) {
    text-align: center;
    width: 130px;
}

.part-catalog-table td:nth-child(8) .btn-sm {
    width: auto;
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Table responsiveness optimization for tablets and mobiles */
@media (max-width: 992px) {
    .part-search-section .container {
        width: 100%;
        padding: 0 10px;
    }
    .part-catalog-table {
        font-size: 0.8rem;
    }
    .part-catalog-table th {
        font-size: 0.825rem;
        padding: 10px 8px;
    }
    .part-catalog-table td {
        padding: 8px 8px;
    }
}

@media (max-width: 768px) {
    .part-catalog-table td, .part-catalog-table th {
        padding: 8px 10px;
    }
}
