/* ========== PRODUCT PAGES SPECIFIC STYLES ========== */

/* Category Overview */
.category-overview {
    background-color: var(--bg-light);
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.category-overview p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 15px;
}

.overview-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.spec-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #42A5F5;
}

.spec-item strong {
    display: block;
    color: #1E88E5;
    margin-bottom: 8px;
    font-size: 14px;
}

.spec-item p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* Filter Section */
.filter-section {
    background-color: var(--white);
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.filter-section h2 {
    margin-bottom: 30px;
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    color: #1E88E5;
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background-color: var(--white);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.filter-select:hover,
.filter-select:focus {
    border-color: #42A5F5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.1);
}

/* Products List */
.products-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-badges .badge {
    background: linear-gradient(135deg, #1E88E5 0%, #42A5F5 100%);
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-light);
}

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

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

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #1E88E5;
    min-height: 40px;
}

.product-specs {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-price {
    font-weight: 600;
    color: #42A5F5;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-direction: column;
}

.product-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 12px;
}

.btn-small {
    padding: 8px 12px;
    font-size: 12px;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-products p {
    font-size: 16px;
}

/* Pagination */
.pagination {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.pagination a:hover {
    background-color: #1E88E5;
    color: #FFFFFF;
    border-color: #1E88E5;
}

.pagination .active {
    background-color: #1E88E5;
    color: #FFFFFF;
    border-color: #1E88E5;
}

/* Product Detail Pages */
.product-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-image-large {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.product-info-hero {
    padding: 20px 0;
}

.product-badge-hero {
    display: inline-block;
    background: linear-gradient(135deg, #1E88E5 0%, #42A5F5 100%);
    color: #FFFFFF;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-info-hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #1E88E5;
}

.product-series {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 15px;
}

.product-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.product-highlights .highlight {
    background-color: transparent;
    border: none;
    padding: 0;
    text-align: center;
}

.product-highlights .highlight strong {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.product-highlights .highlight span {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1E88E5;
}

.product-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-cta .btn {
    flex: 1;
    min-width: 150px;
}

.product-meta {
    font-size: 13px;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.product-meta p {
    margin-bottom: 8px;
}

.product-meta strong {
    color: #1E88E5;
}

/* Product Highlights Section */
.product-highlights-section {
    background-color: var(--bg-light);
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.highlight-card {
    background-color: var(--white);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.highlight-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #1E88E5;
}

.highlight-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Specifications Table */
.specifications-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
}

.spec-table thead {
    background: linear-gradient(135deg, #1E88E5 0%, #42A5F5 100%);
    color: #FFFFFF;
}

.spec-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.spec-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-dark);
}

.spec-table tr:hover {
    background-color: var(--bg-light);
}

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

/* Applications Section */
.applications-section {
    background-color: var(--bg-light);
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.app-item {
    background-color: var(--white);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid #42A5F5;
}

.app-item strong {
    display: block;
    color: #1E88E5;
    margin-bottom: 10px;
    font-size: 15px;
}

.app-item p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Related Products */
.related-products-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.related-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.related-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: var(--bg-light);
}

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

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

.related-card h3 {
    font-size: 16px;
    color: #1E88E5;
    padding: 16px 16px 8px;
    margin: 0;
}

.related-card p {
    font-size: 13px;
    color: var(--text-light);
    padding: 0 16px 16px;
    margin: 0;
}

/* Responsive Product Pages */
@media (max-width: 768px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-info-hero h1 {
        font-size: 28px;
    }

    .product-highlights {
        grid-template-columns: 1fr;
    }

    .product-cta {
        flex-direction: column;
    }

    .product-cta .btn {
        width: 100%;
    }

    .spec-table td:first-child {
        width: auto;
    }

    .filters-container {
        grid-template-columns: 1fr;
    }

    .filters-container .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-info-hero h1 {
        font-size: 24px;
    }

    .product-series {
        font-size: 14px;
    }

    .product-description {
        font-size: 14px;
    }

    .spec-table {
        font-size: 12px;
    }

    .spec-table th,
    .spec-table td {
        padding: 10px 12px;
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .product-highlight {
        gap: 15px;
    }
}
