/* Product List Layout */
.product-list-container {
    padding-bottom: 60px;
}

.product-list-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

/* Sidebar Styles */
.product-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.sidebar-widget {
    margin-bottom: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Categories Navigation */
.categories-list {
    list-style: none;
}

.categories-list > li {
    margin-bottom: 10px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-item a {
    color: var(--text-color);
    text-decoration: none;
    flex: 1;
}

.category-item a:hover {
    color: var(--primary-color);
}

.toggle-submenu {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submenu {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    display: none;
}

.submenu li {
    margin-bottom: 5px;
}

.submenu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.submenu a:hover {
    color: var(--primary-color);
}

/* News Widget */
.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.news-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-dates {
    color: #999;
    font-size: 0.85rem;
    display: block;
    text-align: right;
    margin-top: 5px;
    font-style: italic;
}

.news-list li:hover .news-dates {
    color: #777;
}

.news-list a {
    text-decoration: none;
}

.news-list h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 5px;
}

.news-list p {
    color: #666;
    font-size: 0.8rem;
}

/* Contact Widget */
.contact-card p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.contact-card i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: auto;
    overflow: hidden;
}

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

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

.product-info {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.product-card:hover .product-info {
    background: var(--primary-color);
    color: white;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.product-info p {
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.product-card:hover .product-info h3,
.product-card:hover .product-info p {
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-nav, .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.page-number.active, 
.page-number:hover,
.page-nav:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-nav.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .product-list-grid {
        grid-template-columns: 1fr;
    }

    .product-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .inner-banner {
        padding: 40px 0;
    }
}

/* Product Detail Page Styles */
.breadcrumb-container {
    background-color: #f5f5f5;
    padding: 15px 0;
    margin-bottom: 30px;
}

.product-detail-container {
    padding-bottom: 60px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.product-detail-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.product-gallery-section {
    margin-bottom: 40px;
}

.product-gallery-grid {
    display: grid;
    grid-template-columns: 100px 1fr 300px;
    gap: 20px;
}

.product-thumbnails {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thumbnail-nav {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    margin: 5px 0;
}

.thumbnail-list {
    height: 400px;
    overflow-y: auto;
    margin: 10px 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    margin: 5px 0;
    border: 2px solid #ddd;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.product-main-image {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background: white;
}

.image-zoom-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

#main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zoom-result {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: 200%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-info-card {
    padding: 20px;
    background: #f9f9f9;
    border-radius: var(--border-radius);
}

.product-info-card h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-model {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.product-highlights ul {
    list-style: none;
    margin: 15px 0;
}

.product-highlights li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.product-highlights i {
    margin-right: 10px;
    color: var(--primary-color);
}

.contact-card {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s;
}

.contact-btn i {
    margin-right: 10px;
}

.contact-btn.whatsapp {
    background-color: #25D366;
}

.contact-btn.email {
    background-color: var(--primary-color);
}

.contact-btn.phone {
    background-color: #34B7F1;
}

.contact-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.product-tabs-section {
    margin-top: 40px;
}

.product-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

.tags-container {
    margin-bottom: 20px;
}

.product-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th, .spec-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.spec-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.process-steps {
    list-style: none;
    counter-reset: step-counter;
}

.process-steps li {
    counter-increment: step-counter;
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
}

.process-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.case-studies {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.case-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: var(--border-radius);
}

.case-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.related-products {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Responsive Styles for Product Detail */
@media (max-width: 1200px) {
    .product-gallery-grid {
        grid-template-columns: 80px 1fr 250px;
    }
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-sidebar {
        margin-bottom: 30px;
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-gallery-grid {
        grid-template-columns: 1fr;
    }

    .product-thumbnails {
        flex-direction: row;
        order: 2;
        margin-top: 15px;
    }

    .thumbnail-list {
        height: auto;
        display: flex;
        overflow-x: auto;
        margin: 0 10px;
    }

    .thumbnail {
        margin: 0 5px;
    }

    .thumbnail-nav {
        order: -1;
    }

    .thumbnail-nav.up {
        order: -2;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-studies {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .case-studies {
        grid-template-columns: 1fr;
    }
}