/* Products Page Specific Styles */

/* Hero Section */
.products-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center; /* This already tries to center vertically */
    justify-content: center; /* Add this to center horizontally too */
    overflow: hidden;
    background-color: var(--dark-gray);
    color: var(--light-color);
    background-image: url("../img/electronics-manufacturing.jpg") !important;
    background-size: cover;
    background-position: center;
}

.products-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--dark-gray);
    color: var(--light-color);
    background-image: url("../img/electronics-manufacturing.jpg") !important;
    background-size: cover;
    background-position: center;
}

.products-hero-content {
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
    text-align: center;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    top: 20px;
    z-index: 2;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.products-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color:#b9d4ca
}

.products-hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-bar {
    position: relative;
    max-width: 700px;
    margin: 0 auto 30px;
}

.search-bar input {
    width: 100%;
    padding: 16px 60px 16px 20px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: var(--accent-color);
}

.hero-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.category-pill {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-pill:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}

.category-pill i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Manufacturer Showcase */
.manufacturer-showcase {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.manufacturer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.manufacturer-card {
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manufacturer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.manufacturer-card img {
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
}

.manufacturer-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.manufacturer-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.manufacturer-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s;
}

.manufacturer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.manufacturer-link:hover {
    color: var(--accent-color);
}

.manufacturer-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Stock Advantage Section */
.stock-advantage {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--light-color);
}

.section-header.light h2,
.section-header.light p {
    color: var(--light-color);
}

.section-header.light h2 span {
    color: #f1f5ff;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon i {
    font-size: 28px;
    color: var(--light-color);
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.advantage-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

.stock-image {
    max-width: 900px;
    margin: 60px auto 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.stock-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--light-color);
    font-size: 0.9rem;
}

/* Product Inquiry Banner */
.product-inquiry-banner {
    background-color: #f1f8fb;
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(14, 116, 144, 0.1);
}

.inquiry-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.inquiry-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inquiry-icon i {
    font-size: 24px;
    color: white;
}

.inquiry-text {
    flex: 1;
}

.inquiry-text h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.inquiry-text p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.inquiry-cta {
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .inquiry-content {
        flex-direction: column;
        text-align: center;
    }
    
    .inquiry-cta {
        margin-top: 20px;
    }
}

/* Product Category Sections */
.product-category {
    padding: 80px 0;
}

.product-category.alternate-bg {
    background-color: var(--light-gray);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    flex-shrink: 0;
}

.category-icon i {
    font-size: 30px;
    color: var(--light-color);
}

.category-title h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.category-title h2 span {
    color: var(--accent-color);
}

.category-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.product-filter {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-group label {
    font-weight: 600;
    color: var(--primary-color);
}

.filter-group select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.95rem;
    min-width: 200px;
}

.featured-intro {
    background-color: rgba(14, 116, 144, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 30px 0;
    border-radius: 0 4px 4px 0;
}

.featured-intro p {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stock-label {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.stock-label.in-stock {
    background-color: #e6f7ee;
    color: #0d9e6d;
}

.stock-label.limited-stock {
    background-color: #fff6e6;
    color: #f59e0b;
}

.stock-label.out-of-stock {
    background-color: #fee2e2;
    color: #dc2626;
}

.product-image {
    height: 200px;
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 20px;
    position: relative;
}

.manufacturer-logo {
    position: absolute;
    top: -30px;
    left: 20px;
    height: 40px;
    width: auto;
    background-color: white;
    border-radius: 5px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.manufacturer-logo img {
    height: 100%;
    width: auto;
}

.product-details h3 {
    font-size: 1.1rem;
    margin: 15px 0 10px;
    color: var(--primary-color);
    min-height: 2.5em;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    min-height: 4em;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.part-number {
    font-weight: 600;
}

.availability {
    display: flex;
    align-items: center;
    gap: 5px;
}

.availability i {
    font-size: 0.9rem;
}

.availability i.fa-check-circle {
    color: #0d9e6d;
}

.availability i.fa-exclamation-circle {
    color: #f59e0b;
}

.availability i.fa-times-circle {
    color: #dc2626;
}

.inquiry-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.inquiry-btn:hover {
    background-color: var(--accent-color);
}

.more-products {
    text-align: center;
    margin-top: 40px;
}

.more-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--light-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.more-btn span {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 5px;
}

.more-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Tab Container for Passive Components */
.tab-container {
    margin-top: 30px;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* Stock Request CTA */
.stock-request {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.request-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.request-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.request-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.request-text {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.request-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.request-text p {
    margin-bottom: 25px;
    line-height: 1.7;
    color: var(--text-light);
}

.request-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.request-benefits li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.request-benefits li i {
    color: var(--accent-color);
    margin-top: 3px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Authenticity Guarantee */
.authenticity {
    padding: 80px 0;
}

.process-timeline {
    max-width: 900px;
    margin: 60px auto 0;
    position: relative;
}

.process-step {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 25px;
    height: calc(100% + 30px);
    width: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
    z-index: 1;
}

.process-step:last-child::before {
    display: none;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 30px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.step-content {
    background-color: var(--light-color);
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    flex: 1;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step-content p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.certificates {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 60px;
}

.certificate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.certificate-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.certificate-item span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Animation Classes */
[data-animate] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-animate="left"] {
    transform: translateX(-50px);
}

[data-animate="right"] {
    transform: translateX(50px);
}

[data-animate="up"] {
    transform: translateY(50px);
}

[data-animate="down"] {
    transform: translateY(-50px);
}

[data-animate="scale"] {
    transform: scale(0.8);
}

[data-animate="fade"] {
    opacity: 0;
}

[data-animate].in-view {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media screen and (max-width: 992px) {
    .products-hero h1 {
        font-size: 2.8rem;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .category-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .category-title h2 {
        font-size: 2rem;
    }
    
    .request-image {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .products-hero {
        height: auto;
        padding: 100px 0 80px;
    }
    
    .products-hero h1 {
        font-size: 2.2rem;
    }
    
    .products-hero p {
        font-size: 1.1rem;
    }
    
    .search-bar input {
        padding: 14px 50px 14px 15px;
        font-size: 1rem;
    }
    
    .search-btn {
        width: 40px;
        height: 40px;
    }
    
    .hero-categories {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-pill {
        width: 100%;
        justify-content: center;
    }
    
    .product-filter {
        justify-content: center;
    }
    
    .tab-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .step-content {
        padding: 20px;
    }
    
    .process-step {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .process-step::before {
        display: none;
    }
}

@media screen and (max-width: 576px) {
    .manufacturer-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-grid {
        grid-template-columns: 1fr;
    }
    
    .product-meta {
        flex-direction: column;
    }
    
    .request-text {
        padding: 30px 20px;
    }
    
    .request-text h2 {
        font-size: 1.8rem;
    }
}