:root {
    --primary-color: #E60012; /* Mitsubishi Red */
    --secondary-color: #333333; /* Mitsubishi Dark Gray */
    --bg-color: #FFFFFF; /* Mitsubishi White */
    --text-color: #333333;
    --accent-color: #F5F5F5;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

.product-cta {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.product-cta:hover {
    background: var(--secondary-color);
    box-shadow: var(--shadow);
}

/* Products Page Styles */
.products-page-section {
    position: relative;
    background: var(--bg-color);
    text-align: center;
}

.products-page-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.category-section {
    display: none;
    margin-bottom: 60px;
    padding-top: 20px;
}

.category-section.active {
    display: block;
}

.hero-header {
    position: relative;
    background: linear-gradient(180deg, var(--primary-color) 0%, rgb(209, 23, 38) 100%);
    padding: 80px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 50px;
    overflow: hidden;
    z-index: 1;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.category-headline {
    font-size: 3rem;
    font-weight: 900;
    color: var(--bg-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
}

.category-subheadline {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--bg-color);
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.subcategories-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.toggle-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    transition: var(--transition);
}

.toggle-button:hover,
.toggle-button:focus {
    background: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.toggle-button.active {
    background: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.toggle-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px)); /* Fixed max column width */
    gap: 30px;
    padding: 20px 0;
    justify-content: center; /* Center grid items */
}

.product-card {
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: var(--card-delay);
    width: 100%; /* Take full column width */
    max-width: 350px; /* Cap card width */
    margin: 0 auto; /* Center card in column */
}
.product-card:hover {
    transform: translateY(-10px);
}
.product-image {
    position: relative;
    width: auto; /* Changed from 100% to auto */
    height: auto; /* Changed from fixed height to auto */
    max-width: 100%; /* Prevent overflow */
    background: #f8f8f8;
    display: inline-flex; /* Changed from flex to inline-flex */
    align-items: center;
    justify-content: center;
    /* padding: 15px; */
    margin: 0 auto; /* Center the container */
    border-bottom: 1px solid #eee;
}

.product-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 300px; /* Optional: set maximum dimensions */
    object-fit: contain;
    position: relative;
    opacity: 1;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.03); /* Subtle zoom effect on hover */
}

.product-image img:first-child {
    opacity: 1;
}

.product-content {
    padding: 20px;
    text-align: center;
}

.product-content h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.product-content p {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 20px;
}

/* Model Details Styles */
.model-details-section {
    padding: 50px 0;
    background: var(--bg-color);
    text-align: center;
    display: none;
}

.model-details-section.active {
    display: block;
}

.model-details-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.model-details-header {
    margin-bottom: 40px;
}

.model-details-header h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.model-details-header p {
    font-size: 1.2rem;
    color: var(--text-color);
}

.models-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background: var(--bg-color);
    box-shadow: var(--shadow);
}

.models-table th, .models-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--accent-color);
}

.models-table th {
    background: var(--primary-color);
    color: var(--bg-color);
    font-weight: 600;
}

.models-table td {
    color: var(--text-color);
}

.models-table tr:hover {
    background: var(--accent-color);
}

.pdf-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.pdf-link:hover {
    background: var(--secondary-color);
    box-shadow: var(--shadow);
}

.vrf-contact {
    text-align: center;
    padding: 20px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-header {
        padding: 60px 30px;
    }

    .category-headline {
        font-size: 2.8rem;
    }

    .category-subheadline {
        font-size: 1.4rem;
    }

    .subcategories-toggle {
        gap: 10px;
    }

    .toggle-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .products-page-section {
        padding: 50px 0;
    }

    .hero-header {
        padding: 50px 25px;
        margin-bottom: 40px;
    }

    .category-headline {
        font-size: 2.5rem;
        letter-spacing: 1.5px;
    }

    .category-subheadline {
        font-size: 1.2rem;
        line-height: 1.5;
    }

    .subcategories-toggle {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .toggle-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .category-section {
        margin-bottom: 40px;
    }

    .models-table th, .models-table td {
        padding: 10px;
        font-size: 0.9rem;
    }

    .model-details-header h2 {
        font-size: 2.2rem;
    }

    .model-details-header p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .products-page-container {
        padding: 0 20px;
    }

    .hero-header {
        padding: 40px 20px;
        border-radius: 12px;
    }

    .category-headline {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .category-subheadline {
        font-size: 1rem;
    }

    .toggle-button {
        padding: 8px 16px;
        font-size: 0.95rem;
    }
}