/* =====================================================
   PRODUCTS PAGE STYLES
   ===================================================== */

/* CSS Variables */
:root {
    --primary-color: #1b3a5f;
    --primary-dark: #0d1b2a;
    --accent-orange: #ff9b41;
    --dark-color: #1a1a1a;
    --text-color: #333333;
    --text-light: #666666;
}

/* Page Hero */
.page-hero {
    position: relative;
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=1920') center/cover;
    opacity: 0.15;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-orange);
}

.breadcrumb i {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb span {
    color: var(--accent-orange);
    font-weight: 600;
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

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

.section-intro {
    margin-bottom: 50px;
}

.factory-notice {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 25px 30px;
    border-radius: 12px;
    border-left: 5px solid #2e7d32;
}

.factory-notice i {
    font-size: 2rem;
    color: #2e7d32;
    margin-top: 5px;
}

.factory-notice strong {
    display: block;
    font-size: 1.2rem;
    color: #1b5e20;
    margin-bottom: 5px;
}

.factory-notice p {
    color: #2e7d32;
    margin: 0;
    line-height: 1.6;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    text-decoration: none;
    display: block;
}

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

.product-card-image {
    position: relative;
    height: 220px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 179, 0.9) 0%, rgba(0, 51, 102, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-products {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-products i {
    transition: transform 0.3s ease;
}

.product-card:hover .view-products i {
    transform: translateX(5px);
}

.product-card-content {
    padding: 25px;
}

.product-card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.product-card-content p {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-specs-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-specs-preview span {
    background: #f0f4f8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-specs-preview span i {
    font-size: 0.75rem;
    color: var(--accent-orange);
}

/* More Products Notice */
.more-products-notice {
    margin-top: 60px;
    background: white;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.notice-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notice-icon i {
    font-size: 2.5rem;
    color: white;
}

.notice-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.notice-content p {
    color: #555555;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Products CTA */
.products-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: var(--accent-orange);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 155, 65, 0.3);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-color);
}

/* =====================================================
   PRODUCT DETAIL PAGE STYLES
   ===================================================== */

.product-detail-section {
    padding: 80px 0;
}

.product-detail-header {
    margin-bottom: 50px;
}

.product-detail-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.product-detail-header p {
    color: #555555;
    font-size: 1.1rem;
}

/* Product Items Grid */
.product-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.product-item-image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-item-content {
    padding: 25px;
}

.product-item-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.product-item-content .model-number {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

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

.specs-table td {
    padding: 8px 0;
    font-size: 0.9rem;
}

.specs-table td:first-child {
    color: #666666;
    width: 45%;
}

.specs-table td:last-child {
    color: #1a1a1a;
    font-weight: 500;
}

/* Product Gallery */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Specifications Section */
.specs-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.specs-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.specs-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-orange);
}

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

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.spec-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-orange), #e8862e);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.spec-item-content {
    flex: 1;
}

.spec-item-content label {
    display: block;
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 3px;
}

.spec-item-content span {
    font-weight: 600;
    color: #1a1a1a;
}

/* Product Features */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.features-list li i {
    color: #2e7d32;
    font-size: 1rem;
}

/* Image Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Back to Products */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 12px;
    color: #e8862e;
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-5px);
}

/* Full Width Image Display */
.product-hero-image {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.product-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .more-products-notice {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 140px 0 60px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .products-section {
        padding: 60px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .factory-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .product-items-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .product-card-image {
        height: 180px;
    }
    
    .more-products-notice {
        padding: 30px 20px;
    }
    
    .notice-icon {
        width: 60px;
        height: 60px;
    }
    
    .notice-icon i {
        font-size: 1.8rem;
    }
}

/* Product PDF Download Button */
.product-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.btn-product-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}
.btn-product-pdf:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}
.btn-product-pdf i {
    font-size: 15px;
}
