.products-gallery {
    padding: 100px 0;
    background: #f8f9fa;
}

.filter-container {
    margin-bottom: 50px;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #061948;
    border-radius: 30px;
    color: #061948;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #061948;
    color: white;
    text-decoration: none;
}

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

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

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 25, 72, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.view-details {
    background: white;
    color: #061948;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .view-details {
    transform: translateY(0);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.2em;
    color: #061948;
    margin-bottom: 10px;
}

.product-info .category {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.meta-info {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #777;
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-info i {
    color: #061948;
}

/* Modal Styles */
.product-modal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.product-modal .modal-header {
    background: #061948;
    color: white;
    border: none;
}

.product-modal .modal-title {
    font-size: 1.5em;
}

.product-modal .close {
    color: white;
    opacity: 1;
}

.product-details {
    padding: 20px;
}

.product-details h4 {
    color: #061948;
    margin-bottom: 20px;
}

.product-details .description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-details .specs {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-details .specs p {
    margin-bottom: 10px;
}

.qr-section {
    text-align: center;
    margin-top: 20px;
}

.qrcode-container {
    display: none;
    margin: 15px auto;
    max-width: 128px;
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-qr {
    background: #061948;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-qr:hover {
    background: #0a2565;
}

@media (max-width: 991px) {
    .products-gallery {
        padding: 70px 0;
    }
    
    .product-modal .modal-dialog {
        max-width: 90%;
    }
}

@media (max-width: 767px) {
    .products-gallery {
        padding: 50px 0;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9em;
    }
    
    .product-modal .modal-body .row {
        flex-direction: column;
    }
    
    .product-modal .modal-body .col-md-6:first-child {
        margin-bottom: 20px;
    }
}

/* Products Page Styles */

.inner-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.inner-banner h2 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 600;
}

/* Category Filters */
.category-filters {
    margin-bottom: 30px;
}

.filter-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.filter-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.view-details {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-details:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.category {
    color: #007bff;
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.meta-info {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
}

.meta-info span {
    display: flex;
    align-items: center;
}

.meta-info i {
    margin-right: 5px;
    color: #007bff;
}

/* Load More Button */
.load-more-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
}

/* Product Modal */
.product-modal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.product-modal .modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.product-modal .modal-title {
    font-weight: 600;
}

.product-details h4 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-details .description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.specs p {
    margin-bottom: 8px;
    color: #555;
}

.specs strong {
    color: #333;
}

.qr-section {
    margin-top: 20px;
    text-align: center;
}

.qrcode-container {
    margin: 10px 0;
    display: none;
}

.btn-qr {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-qr:hover {
    background: #218838;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .inner-banner h2 {
        font-size: 2rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
    }
    
    .meta-info {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .inner-banner {
        padding: 40px 0;
    }
    
    .inner-banner h2 {
        font-size: 1.8rem;
    }
    
    .filter-btn {
        display: block;
        margin: 5px auto;
        max-width: 200px;
    }
}

/* Animation for new products */
.product-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}