/* 
* Isuzu Pages Specific Styles
* Includes styles for both overview and product pages
*/

/* Hero Section */
.isuzu-hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/1_1.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

/* Overview Section */
.overview-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.overview-container {
    max-width: 1000px;
    margin: 0 auto;
}

.overview-intro {
    text-align: center;
    margin-bottom: 60px;
}

.overview-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.overview-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.euro4-highlight {
    background-color: rgba(0, 123, 255, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 4px;
    font-weight: 500;
}

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

.advantage-item {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.advantage-item p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.advantage-points {
    padding-left: 20px;
}

.advantage-points li {
    margin-bottom: 10px;
    position: relative;
}

.advantage-points li:before {
    content: '✓';
    position: absolute;
    left: -20px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-info p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-color);
}

.product-buttons {
    display: flex;
    gap: 10px;
}

/* Basic Product Info */
.basic-product-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .basic-product-info {
        flex-direction: row;
    }
}

.product-hero-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-description {
    flex: 1;
    padding: 20px;
}

.product-description h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.product-description p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-description h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-description ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.product-description ul li {
    margin-bottom: 5px;
    position: relative;
}

.product-description ul li:before {
    content: '•';
    position: absolute;
    left: -15px;
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .overview-advantages {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .overview-intro h2 {
        font-size: 2rem;
    }
    
    .product-buttons {
        flex-direction: column;
    }
    
    .basic-product-info {
        flex-direction: column;
    }
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 40px;
    margin: 20px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-indicator p {
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px;
    background-color: #f8d7da;
    border-radius: 8px;
    margin: 20px 0;
}

.error-message h3 {
    color: #721c24;
    margin-bottom: 10px;
}

.error-message p {
    color: #721c24;
}

/* Specs Navigation */
.specs-nav {
    margin-bottom: 40px;
}

.specs-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.specs-nav ul li {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    padding: 15px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.specs-nav ul li.active {
    background-color: var(--primary-color);
    color: white;
}

.specs-nav ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.specs-nav ul li .icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.specs-nav ul li .title {
    font-weight: 600;
}

/* Specs Content */
.specs-content {
    margin-bottom: 60px;
}

.spec-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.spec-section.active {
    display: flex;
}

.spec-section {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

.spec-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.spec-image img {
    width: 100%;
    height: auto;
    display: block;
}

.spec-details {
    flex: 1;
}

.spec-details h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.spec-details h3 .icon {
    margin-right: 10px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.spec-table tr {
    border-bottom: 1px solid var(--border-color);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 12px 0;
}

.spec-table td:first-child {
    font-weight: 600;
    width: 40%;
}

.spec-features {
    margin-top: 30px;
}

.spec-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.spec-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Gallery Section */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

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