/* Products Page Styles */

/* Page Banner */
.page-banner {
    position: relative;
    height: 300px;
    margin-top: 80px;
    overflow: hidden;
}

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

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.banner-overlay h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 15px;
}

.banner-overlay hr {
    width: 60px;
    border: none;
    border-top: 2px solid #d4a853;
}

/* Breadcrumb */
.breadcrumb {
    background: #f5f5f5;
    padding: 15px 0;
    font-size: 13px;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb a {
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb a:hover {
    color: #d4a853;
}

.breadcrumb a img {
    width: 16px;
    height: 16px;
}

.breadcrumb span {
    color: #999;
}

.breadcrumb .current {
    color: #333;
}

/* Products Layout */
.products-page {
    padding: 50px 0;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar */
.products-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.products-sidebar h3 {
    font-size: 18px;
    color: #333;
    padding: 15px 20px;
    background: #f5f5f5;
    border-left: 3px solid #d4a853;
}

.product-categories {
    list-style: none;
    border: 1px solid #eee;
}

.product-categories > li {
    border-bottom: 1px solid #eee;
    position: relative;
}

.product-categories > li:last-child {
    border-bottom: none;
}

.product-categories > li > a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
}

.product-categories > li > a:hover,
.product-categories > li.active > a {
    color: #d4a853;
    background: #fafafa;
}

.product-categories .toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 5px;
}

.product-categories .toggle img {
    width: 12px;
    height: 12px;
}

.sub-categories {
    list-style: none;
    background: #f9f9f9;
    display: none;
}

/* Show sub-categories when parent is active */
.product-categories > li.active .sub-categories {
    display: block !important;
}

.sub-categories li {
    border-top: 1px solid #eee;
}

.sub-categories a {
    display: block;
    padding: 12px 20px 12px 35px;
    color: #666;
    font-size: 13px;
    transition: all 0.3s;
}

.sub-categories a:hover {
    color: #d4a853;
    padding-left: 40px;
}

/* Sidebar Contact */
.sidebar-contact {
    margin-top: 30px;
    background: #f9f9f9;
    padding: 20px;
}

.sidebar-contact h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding: 0;
    background: none;
    border: none;
}

.sidebar-contact hr {
    border: none;
    border-top: 1px solid #ddd;
    margin-bottom: 15px;
}

.contact-card {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.contact-card hr {
    margin: 10px 0;
}

.contact-card a {
    color: #d4a853;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

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

/* Product Header with RELATED/CONTACT buttons */
.product-header {
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.product-header h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-header h3 a {
    color: #333;
}

.product-header h3 a:hover {
    color: #d4a853;
}

.product-header hr {
    border: none;
    border-top: 1px solid #ddd;
    margin-bottom: 10px;
}

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

.product-btns a {
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 3px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-related {
    background: #d4a853;
    color: #fff;
}

.btn-related:hover {
    background: #c49643;
}

.btn-contact {
    background: #333;
    color: #fff;
}

.btn-contact:hover {
    background: #555;
}

.product-img {
    display: block;
    position: relative;
    overflow: hidden;
}

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

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-info h3 a {
    color: #333;
}

.product-info h3 a:hover {
    color: #d4a853;
}

.product-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions {
    display: flex;
    border-top: 1px solid #eee;
}

.product-actions a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.product-actions img {
    width: 16px;
    height: 16px;
}

.btn-details {
    background: #f5f5f5;
    color: #333;
    border-right: 1px solid #eee;
}

.btn-details:hover {
    background: #d4a853;
    color: #fff;
}

.btn-inquiry {
    background: #f5f5f5;
    color: #333;
}

.btn-inquiry:hover {
    background: #d4a853;
    color: #fff;
}

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

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: #d4a853;
    border-color: #d4a853;
    color: #fff;
}

/* Product Detail Page */
.product-detail {
    padding: 50px 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Product Gallery */
.product-gallery {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    border-color: #d4a853;
}

.gallery-main {
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-zoom {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
}

/* Product Info */
.product-detail-info {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.product-detail-info h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.detail-meta {
    margin-bottom: 20px;
}

.detail-meta p {
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-meta strong {
    color: #333;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.contact-person {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}

.contact-person h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
}

.contact-person p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.contact-person a {
    color: #d4a853;
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.detail-actions a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.detail-actions img {
    width: 18px;
    height: 18px;
}

.btn-message {
    background: #d4a853;
    color: #fff;
}

.btn-message:hover {
    background: #c49643;
}

.btn-related {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-related:hover {
    background: #eee;
}

/* Product Description */
.product-description {
    margin-top: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.desc-header {
    display: flex;
    background: #f5f5f5;
}

.desc-tab {
    padding: 15px 30px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.desc-tab.active {
    color: #d4a853;
    border-bottom-color: #d4a853;
    background: #fff;
}

.desc-content {
    padding: 30px;
}

.specs-list {
    list-style: none;
}

.specs-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.specs-list li:last-child {
    border-bottom: none;
}

/* Related Products */
.related-products {
    margin-top: 40px;
}

.related-products h2 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #333;
}

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

.related-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

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

.related-item p {
    padding: 15px;
    font-size: 13px;
    color: #333;
}

.related-item a:hover p {
    color: #d4a853;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .products-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .product-detail-info {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 200px;
    }
    
    .banner-overlay h1 {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-sidebar {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumbs {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .gallery-thumbs img {
        width: 80px;
        height: 60px;
    }
    
    .gallery-main img {
        height: 300px;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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