/* Products Page Specific Styles */

/* Page Banner */
.page-banner {
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 61, 122, 0.8)), url('../public/media/Card_NationaID.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Category Navigation */
.product-categories {
    background-color: #f8f9fa;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 90px;
    z-index: 900;
}

.category-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.category-nav li {
    margin: 0 15px;
}

.category-nav a {
    color: #333;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.category-nav a:hover {
    color: #0056b3;
}

.category-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #0056b3;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.category-nav a:hover::after {
    width: 100%;
}

/* Product Sections */
.product-section {
    padding: 80px 0;
}

.product-section:nth-child(odd) {
    background-color: #fff;
}

.product-section:nth-child(even) {
    background-color: #f8f9fa;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #6c757d;
    font-size: 1.1rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 40px;
}

/* Product Items */
.product-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image-container {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

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

.product-details {
    flex: 0 0 60%;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.accessories-details {
    flex: 0 0 100%;
}

.product-details h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #0056b3;
}

.product-details p {
    margin-bottom: 15px;
    color: #6c757d;
}

.product-features {
    margin-bottom: 20px;
    padding-left: 20px;
}

.product-features li {
    margin-bottom: 8px;
    position: relative;
    list-style-type: none;
}

.product-features li::before {
    content: '\2022';
    color: #0056b3;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.product-details .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Video Styling */
.product-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Lightbox for Product Images */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    border: 5px solid #fff;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .page-banner h1 {
        font-size: 2.2rem;
    }
    
    .page-banner p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .product-categories {
        top: 80px;
    }
    
    .category-nav ul {
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-nav li {
        margin: 0 10px;
        white-space: nowrap;
    }
    
    .product-item {
        flex-direction: column;
    }
    
    .product-image-container, .product-details {
        flex: 0 0 100%;
    }
    
    .product-image-container {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .page-banner h1 {
        font-size: 1.8rem;
    }
    
    .page-banner p {
        font-size: 1rem;
    }
    
    .product-section {
        padding: 60px 0;
    }
    
    .product-details h3 {
        font-size: 1.3rem;
    }
    
    .product-image-container {
        height: 200px;
    }
}