/**
 * Product Styles
 */

/* Product Archive/Category Pages */
.products-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0073aa;
}

.category-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.products-filter {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.filter-categories h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 5px;
}

.category-list a {
    color: #333;
    text-decoration: none;
}

.category-list a:hover {
    color: #0073aa;
}

.filter-sort select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 18px;
    margin: 0 0 10px;
    color: #333;
}

.product-model {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.product-sku {
    font-size: 12px;
    color: #999;
}

.product-excerpt {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
}

/* Pagination */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.page-numbers.current {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

.page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

/* Subcategories */
.subcategories {
    margin-bottom: 30px;
}

.subcategory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.subcategory-list li a {
    display: block;
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.subcategory-list li a:hover {
    background-color: #e0e0e0;
}

/* Single Product */
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.product-gallery-container {
    position: relative;
}

.product-gallery-main {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.product-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover {
    border-color: #0073aa;
}

.product-info-container {
    display: flex;
    flex-direction: column;
}

.product-header {
    margin-bottom: 20px;
}

.product-header .product-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.product-model, .product-sku {
    margin-bottom: 10px;
    font-size: 16px;
}

.product-model .label, .product-sku .label {
    font-weight: bold;
    margin-right: 10px;
}

.product-short-description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #666;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.inquiry-button, .contact-button {
    display: inline-block;
    padding: 12px 25px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.inquiry-button {
    background-color: #0073aa;
    color: white;
}

.inquiry-button:hover {
    background-color: #005d87;
}

.contact-button {
    background-color: #f5f5f5;
    color: #333;
}

.contact-button:hover {
    background-color: #e0e0e0;
}

.product-details-container {
    margin-bottom: 50px;
}

.product-tabs {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f5f5f5;
}

.tab-item {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.tab-item.active {
    background-color: white;
    border-bottom: 3px solid #0073aa;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.product-description {
    line-height: 1.8;
}

.product-parameters, .technical-information {
    margin-bottom: 30px;
}

.product-parameters h3, .technical-information h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.parameters-table, .technical-table {
    width: 100%;
    border-collapse: collapse;
}

.parameters-table th, .parameters-table td,
.technical-table th, .technical-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.parameters-table th, .technical-table th {
    width: 30%;
    font-weight: bold;
    background-color: #f9f9f9;
}

.related-products-container {
    margin-top: 50px;
}

.related-products h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .products-filter {
        flex-direction: column;
        gap: 15px;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-item {
        border-bottom: 1px solid #eee;
    }
    
    .tab-item.active {
        border-bottom: 1px solid #eee;
        border-left: 3px solid #0073aa;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
} 