﻿/* CSS Variables for consistent theming */
        :root {
            --primary-color: #A20011;
            --primary-hover: #800000;
            --text-dark: #333;
            --text-medium: #555;
            --text-light: #666;
            --bg-light: #f5f5f5;
            --bg-lighter: #f9f9f9;
            --border-light: rgba(0, 0, 0, 0.1);
            --shadow-light: 0 2px 6px rgba(0, 0, 0, 0.05);
            --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
            --shadow-heavy: 0 8px 24px rgba(0,0,0,0.12);
            --border-radius: 12px;
            --border-radius-small: 8px;
            --transition: all 0.3s ease;
            --font-regular: 'ToyotaType-Regular', Arial, sans-serif;
            --font-semibold: 'ToyotaType-Bold', Arial, sans-serif;
        }

        /* Utility Classes */
        .font-regular { font-family: var(--font-regular); }
        .font-semibold { font-family: var(--font-semibold); }
        .text-center { text-align: center; }
        .hidden { display: none; }
        .flex { display: flex; }
        .flex-col { flex-direction: column; }
        .items-center { align-items: center; }
        .gap-1 { gap: 1rem; }
        .mb-2 { margin-bottom: 2rem; }
        .p-2 { padding: 2rem; }

        /* Common Button Styles */
        .btn {
            font-family: var(--font-regular);
            cursor: pointer;
            transition: var(--transition);
            border-radius: var(--border-radius-small);
            padding: 0.5rem 1rem;
        }
        .btn-outline {
            background: none;
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
        }
        .btn-outline:hover {
            background: var(--primary-color);
            color: white;
        }

        /* Common Input Styles */
        .input-base {
            font-family: var(--font-regular);
            border: 1px solid var(--border-light);
            border-radius: var(--border-radius);
            background: white;
            box-shadow: var(--shadow-light);
            transition: var(--transition);
        }
        .input-base:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 2px 12px rgba(162, 0, 17, 0.1);
        }

        /* Container and Layout */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }
        
        /* Model Selection Section */
        .model-selection {
            text-align: center;
            margin-bottom: 3rem;
        }
        
        .model-selection h2 {
            font-family: var(--font-semibold);
            font-weight: 700;
            font-size: 2.5rem;
            color: var(--text-dark);
            margin-bottom: 2rem;
            text-align: center;
        }
        
        .model-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }
        
        .model-card {
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            padding: 1.5rem;
            cursor: pointer;
            transition: var(--transition);
            background: white;
            text-decoration: none;
            color: inherit;
            display: block;
            box-shadow: var(--shadow-light);
        }
        
        .model-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-heavy);
        }
        
        .model-card img {
            width: 100%;
            height: auto;
            object-fit: contain;
            border-radius: var(--border-radius-small);
            margin-bottom: 1rem;
        }
        
        .model-card h3 {
            margin: 0;
            color: var(--text-dark);
            font-size: 1.1rem;
            font-family: var(--font-regular);
            font-weight: 500;
            text-align: center;
        }
        
        /* Search Container */
        .search-container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1rem;
            position: relative;
        }

        .search-wrapper {
            position: relative;
            margin-bottom: 2rem;
        }

        .search-box {
            width: 100%;
            padding: 1rem 3rem;
            font-size: 1.1rem;
            color: var(--text-dark);
        }

        .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
            pointer-events: none;
        }

        .clear-search {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
            cursor: pointer;
            padding: 0.25rem;
            border-radius: 50%;
            display: none;
            transition: var(--transition);
        }
        .clear-search:hover {
            background-color: var(--bg-light);
            color: var(--primary-color);
        }
        .clear-search.visible { display: block; }

        /* Search Suggestions */
        .search-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: var(--border-radius-small);
            box-shadow: var(--shadow-medium);
            margin-top: 0.5rem;
            max-height: 300px;
            overflow-y: auto;
            display: none;
            z-index: 1000;
            font-family: var(--font-regular);
        }
        .search-suggestions.active { display: block; }

        .suggestion-item {
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            transition: background-color 0.2s;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-family: var(--font-regular);
        }
        .suggestion-item:hover,
        .suggestion-item.selected {
            background-color: var(--bg-light);
        }

        .suggestion-item .category {
            font-size: 0.8rem;
            color: var(--text-light);
            background: #f0f0f0;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-family: var(--font-regular);
        }

        .highlight {
            background-color: rgba(162, 0, 17, 0.1);
            padding: 0 2px;
            border-radius: 2px;
        }



        /* Accessories Section */
        .accessories-section {
            display: none;
        }
        
        .accessories-section.active {
            display: block;
        }
        
        /* Grid Layout */
        .accessories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        /* Accessory Cards */
        .accessory-card {
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            padding: 1.5rem;
            transition: var(--transition);
            font-family: var(--font-regular);
            display: flex;
            flex-direction: column;
            text-decoration: none;
            color: inherit;
            background: white;
            height: 360px;
            position: relative;
            cursor: pointer;
            box-shadow: var(--shadow-light);
        }
        .accessory-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-heavy);
        }

        .accessory-card::after {
            content: "View Details →";
            position: absolute;
            bottom: 1.5rem;
            right: 1.5rem;
            font-family: var(--font-regular);
            font-size: 0.85rem;
            color: var(--primary-color);
            opacity: 0;
            transform: translateX(-10px);
            transition: var(--transition);
            background: white;
            padding: 0.5rem 0 0 1rem;
            pointer-events: none;
        }
        .accessory-card:hover::after {
            opacity: 1;
            transform: translateX(0);
        }

        .accessory-image {
            width: 100%;
            object-fit: cover;
            border-radius: var(--border-radius-small);
            margin-bottom: 1.25rem;
            background-color: var(--bg-light);
            transition: transform 0.3s ease;
        }
        .accessory-card:hover .accessory-image {
            transform: scale(1.02);
        }

        .accessory-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding-bottom: 3rem;
            position: relative;
        }

        .accessory-header h3 {
            margin: 0;
            color: var(--text-dark);
            font-family: var(--font-semibold);
            font-weight: 600;
            font-size: 1.25rem;
            line-height: 1.4;
            transition: color 0.3s ease;
        }
        .accessory-card:hover .accessory-header h3 {
            color: var(--primary-color);
        }

        .accessory-overview {
            color: var(--text-light);
            line-height: 1.6;
            font-size: 0.9rem;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            position: relative;
            margin-bottom: 0.5rem;
        }
        .accessory-overview::after {
            content: "";
            position: absolute;
            bottom: 0;
            right: 0;
            width: 40%;
            height: 1.6em;
            background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1) 50%);
            pointer-events: none;
        }

        /* Single Accessory View */
        .single-accessory {
            display: none;
        }
        
        .single-accessory.active {
            display: block;
        }
        
        .single-accessory .accessory-image {
            width: 100%;
            height: 400px;
            object-fit: cover;
            border-radius: 0;
            margin-bottom: 0;
        }

        .single-accessory .image-container {
            position: relative;
            width: 100%;
            height: 400px;
        }

        .single-accessory .image-overlay {
            position: absolute;
            top: 50%;
            right: -4rem;
            transform: translateY(-50%);
            background: linear-gradient(to left, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
            color: white;
            padding: 1.5rem 2rem;
            z-index: 10;
        }

        .single-accessory .image-overlay h1 {
            color: white;
            font-family: var(--font-semibold);
            font-weight: 600;
            font-size: 2.5rem;
            margin: 0;
            line-height: 1.2;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .single-accessory .mobile-title {
            display: none;
            text-align: center;
            padding: 2rem 1rem;
            background: white;
        }

        .single-accessory .mobile-title h1 {
            color: var(--text-dark);
            font-family: var(--font-semibold);
            font-weight: 600;
            font-size: 2rem;
            margin: 0;
            line-height: 1.3;
        }

        /* Ensure proper responsive behavior */
        @media (min-width: 769px) {
            .single-accessory .mobile-title {
                display: none !important;
            }
            .single-accessory .image-overlay {
                display: block !important;
            }
        }

        .single-accessory .accessory-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
            font-family: var(--font-regular);
        }
        
        .single-accessory h1 {
            color: var(--text-dark);
            font-family: var(--font-semibold);
            font-weight: 600;
            font-size: 2rem;
            margin-bottom: 1rem;
            line-height: 1.3;
        }
        
        .single-accessory h2 {
            color: var(--text-dark);
            font-family: var(--font-semibold);
            font-weight: 600;
            font-size: 1.5rem;
            margin: 2rem 0 1rem;
        }

        .single-accessory .accessory-description p {
            font-family: var(--font-regular);
            font-size: 1.1rem;
            line-height: 1.7;
            color: var(--text-medium);
            margin-bottom: 2rem;
            font-weight: 300;
        }

        /* Responsive image classes */
        .desktop-show {
            display: block;
        }
        .mobile-show {
            display: none;
        }

        .accessory-categories {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }
        
        .category-tag {
            background: var(--bg-light);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            font-family: var(--font-regular);
            color: var(--text-light);
            font-weight: 400;
        }

        .back-button {
            display: inline-block;
            margin-bottom: 1rem;
            color: var(--primary-color);
            text-decoration: none;
            font-family: var(--font-semibold);
            font-size: 0.9rem;
            transition: color 0.3s ease;
            font-weight: 400;
        }
        
        .back-button:hover {
            color: var(--primary-hover);
        }

        /* Combined Tabs and Gallery System */
        .tabs-gallery-section {
            margin: 0;
            background: linear-gradient(to bottom, #e0e0e0 0%, #e0e0e0 60%, #f5f5f5 80%, white 100%);
            border-radius: 0;
            overflow: hidden;
            width: 100vw;
            margin-left: calc(-50vw + 49%);
            padding: 6rem 0 3rem 0;
        }

        .tabs-container {
            margin: 0;
            background: transparent;
            border-radius: 0;
            overflow: hidden;
        }

        .tabs-header {
            display: flex;
            background: #e0e0e0;
            border-bottom: 1px solid #d0d0d0;
            max-width: 1200px;
            margin: 0 auto;
        }

        .tab-button {
            flex: 1;
            padding: 1.25rem 2rem;
            background: none;
            border: none;
            font-family: var(--font-semibold);
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
            position: relative;
        }
        .tab-button:hover {
            background: rgba(162, 0, 17, 0.05);
            color: var(--text-dark);
        }
        .tab-button.active {
            background: white;
            color: var(--primary-color);
        }
        .tab-button.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--primary-color);
        }

        .tab-content {
            display: none;
            padding: 2rem;
            background: white;
            max-width: 1200px;
            margin: 0 auto;
        }
        .tab-content.active {
            display: block;
        }

        .tab-content h3 {
            margin: 0 0 1.5rem 0;
            font-family: var(--font-semibold);
            font-weight: 600;
            color: var(--text-dark);
            font-size: 1.3rem;
        }

        /* Benefits Grid */
        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin: 0;
        }

        .benefit-item {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
        }

        .benefit-icon {
            width: 32px;
            height: 32px;
            min-width: 32px;
            background: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1rem;
            font-family: var(--font-semibold);
        }

        .benefit-content {
            flex: 1;
        }

        .benefit-description {
            font-family: var(--font-regular);
            color: var(--text-light);
            line-height: 1.5;
            font-size: 0.95rem;
            font-weight: 300;
        }
        
        .features-list {
            list-style: none;
            padding: 0;
            margin: 1.5rem 0;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 1rem 2rem;
        }
        
        .features-list li {
            position: relative;
            padding-left: 1.75rem;
            margin-bottom: 0.75rem;
            line-height: 1.5;
            color: var(--text-medium);
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            font-family: var(--font-regular);
            font-weight: 300;
        }

        .features-list li::before {
            content: "";
            position: absolute;
            left: 0;
            width: 8px;
            height: 8px;
            background-color: var(--primary-color);
            border-radius: 50%;
            margin-top: 0;
            transform: translateY(-50%);
            top: 50%;
        }

        /* Gallery System */
        .gallery-section {
            padding: 6rem 0 3rem;
            background: transparent;
        }

        .gallery-container {
            position: relative;
            width: 100vw;
            height: auto;
            margin-left: calc(-50vw + 50%);
            overflow: hidden;
            border-radius: 0;
            background: transparent;
        }

        .gallery-track {
            display: flex;
            height: 100%;
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            gap: 2rem;
            padding: 0 25vw;
            cursor: grab;
        }

        .gallery-track:active {
            cursor: grabbing;
        }

        .gallery-slide {
            flex: 0 0 50vw;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 1rem;
        }

        .gallery-image {
            width: 100%;
            height: auto;
            object-fit: cover;
            object-position: center;
            border-radius: var(--border-radius);
        }

        /* Navigation */
        .gallery-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            border: none;
            color: var(--text-dark);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-medium);
        }

        .gallery-nav:hover:not(.disabled) {
            background: white;
            transform: translateY(-50%) scale(1.1);
            box-shadow: var(--shadow-heavy);
        }

        .gallery-nav.disabled {
            opacity: 0.3;
            cursor: not-allowed;
            pointer-events: none;
        }

        .gallery-nav.prev {
            left: 1rem;
        }

        .gallery-nav.next {
            right: 1rem;
        }

        .gallery-nav svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            stroke-width: 2;
            fill: none;
        }

        /* Counter */
        .gallery-counter {
            position: absolute;
            bottom: 1rem;
            right: 1rem;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: var(--border-radius-small);
            font-family: var(--font-regular);
            font-size: 0.9rem;
            z-index: 10;
            backdrop-filter: blur(10px);
        }
        
        .vehicle-tags {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
            margin-top: 1rem;
        }
        
        .vehicle-tag {
            font-size: 0.85rem;
            color: var(--text-light);
            font-family: var(--font-regular);
            font-weight: 400;
        }
        
        .vehicle-tag-link {
            text-decoration: none;
            color: inherit;
            transition: var(--transition);
        }
        
        .vehicle-tag-with-image {
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            padding: 1.5rem;
            cursor: pointer;
            transition: var(--transition);
            background: white;
            text-decoration: none;
            color: inherit;
            display: block;
            box-shadow: var(--shadow-light);
        }
        
        .vehicle-tag-with-image:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-medium);
        }
        
        .vehicle-tag-image {
            width: 100%;
            height: auto;
            object-fit: contain;
            border-radius: var(--border-radius-small);
            margin-bottom: 1rem;
        }
        
        .vehicle-tag {
            margin: 0;
            color: var(--text-dark);
            font-size: 0.95rem;
            font-family: var(--font-regular);
            font-weight: 500;
            text-align: center;
        }
        
        .compatibility-section {
            margin-top: 2rem;
        }

        /* Selected Model Info */
        .selected-model-info {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
            padding: 2rem;
            border-radius: var(--border-radius);
            margin-bottom: 2rem;
            color: white;
            position: relative;
            overflow: hidden;
        }
        
        
        .model-info-header {
            display: flex;
            align-items: center;
            gap: 2rem;
            margin-bottom: 1.5rem;
            position: relative;
            z-index: 1;
        }
        
        .selected-model-image {
            width: auto;
            height: 80px;
            object-fit: contain;
        }
        
        .model-info-text {
            flex: 1;
        }
        
        .model-subtitle {
            color: white;
            margin: 0 0 0.5rem 0;
            font-family: var(--font-semibold);
            font-weight: 600;
            font-size: 1.6rem;
            line-height: 1.3;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .model-info-description {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1rem;
            margin: 0;
            font-weight: 300;
        }
        
        .model-info-header {
            display: flex;
            align-items: center;
            gap: 2rem;
            margin-bottom: 0;
            position: relative;
            z-index: 1;
            justify-content: space-between;
        }
        
        .model-info-content {
            display: flex;
            align-items: center;
            gap: 2rem;
        }
        
        .change-model-btn {
            background: rgba(255, 255, 255, 0.25);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.4);
            padding: 1rem 2rem;
            border-radius: var(--border-radius-small);
            cursor: pointer;
            font-family: var(--font-semibold);
            font-weight: 600;
            font-size: 1rem;
            transition: var(--transition);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .change-model-btn:hover {
            background: rgba(255, 255, 255, 0.4);
            border-color: rgba(255, 255, 255, 0.6);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        }

        /* No Results */
        .no-results {
            text-align: center;
            padding: 2rem;
            color: var(--text-light);
            font-family: var(--font-regular);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .features-list {
                grid-template-columns: 1fr;
            }
            .accessories-grid {
                grid-template-columns: 1fr;
            }
            .model-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }
            .model-card {
                padding: 1rem;
            }
            .model-card h3 {
                font-size: 0.9rem;
            }
            .vehicle-tags {
                grid-template-columns: repeat(2, 1fr);
            }
            .model-info-header {
                flex-direction: column;
                text-align: center;
                gap: 1.5rem;
            }
            .model-info-content {
                flex-direction: column;
                gap: 1rem;
            }
            .selected-model-image {
                height: 70px;
            }
            .model-subtitle {
                font-size: 1.4rem;
            }
            .single-accessory .image-container {
                height: 250px;
            }
            .single-accessory .accessory-image {
                height: 250px;
            }
            .single-accessory .image-overlay {
                display: none !important;
            }
            .single-accessory .mobile-title {
                display: block !important;
            }
            .desktop-show {
                display: none !important;
            }
            .mobile-show {
                display: block !important;
            }
            .gallery-nav {
                width: 40px;
                height: 40px;
            }
            
            .gallery-nav.prev {
                left: 0.5rem;
            }
            
            .gallery-nav.next {
                right: 0.5rem;
            }
        }

        .intro-text {
            text-align: center;
            max-width: 800px;
            margin: 0 auto 3rem auto;
            font-size: 1.1rem;
            line-height: 1.6;
            color: var(--text-medium);
            font-family: var(--font-regular);
            font-weight: 300;
            text-transform: none;
            letter-spacing: normal;
        }
