body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

.fa-classic,
.fas {
    font-size: 20px;
}

/* ---------------- NAVBAR ---------------- */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 50px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.back-btn {
    text-decoration: none;
    color: gray;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 20px;
}

.back-btn:hover,
.back-btn.active {
    color: #2563eb;
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #2563eb;
    border-radius: 3px;
}

/* Dropdown */
.nav-item.dropdown .dropdown-toggle i {
    font-size: 0.75rem;
    margin-left: 6px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    min-width: 200px;
    padding: 10px 0;
    display: none;
    z-index: 200;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-link {
    display: block;
    padding: 10px 16px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s, color 0.3s;
}

.dropdown-link:hover {
    background: #2563eb;
    color: #fff;
}

.products-grid-section .container h2{
        font-size: 2rem;
    font-weight: 600;
    color: var(--primary-dark-blue);
    padding: 3rem 2rem;
}
/* Show dropdown on hover (desktop only) */
@media (min-width: 769px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: flex;
        position: fixed;
        left: -100%;
        top: 70px;
        height: calc(100vh - 130px);
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 999;

        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    /* Dropdown on mobile */
    .dropdown-menu {
        position: static;
        background: #f9fafb;
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .dropdown-link {
        padding: 10px 0;
        display: block;
    }

    /* Extra adjustments for other sections (optional) */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-links {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: #2563eb;
        transition: width 0.3s ease;
    }

    .nav-link.active::after {
        width: 100%;
    }
}




/* ---------------- EXISTING NEWSROOM STYLES ---------------- */
.news-categories {
    background: white;
    padding: 40px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;

}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.category-btn:hover,
.category-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.featured-news {
    padding: 60px 0;
}

.featured-article {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 60px 0 40px;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-text {
    padding: 60px;
}

.featured-text h2 {
    font-size: 2rem;
}

.read-more-btn {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.news-grid-section {
    padding: 60px 0;
    background: #f8fafc;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.news-content {
    padding: 30px;
}

.news-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
}

.pagination a.active,
.pagination a:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.footer {
    background: #1e293b;
    color: white;
    padding: 60px 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 6px 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 30px;
    text-align: center;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .featured-content {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}
.search-container {
    position: relative;
    max-width: 500px;
    margin-bottom: 2rem;
}

.product-search {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-search:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
    pointer-events: none;
}

/* Filter Sections */
.filter-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.filter-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.filter-section h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-section h4 i {
    color: #007bff;
    font-size: 1rem;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid #e9ecef;
    background: white;
    color: #495057;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.filter-btn.active:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
}

.filter-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Filter Count Badges */
.filter-count {
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Active Filters Container */
.active-filters-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.active-filters-label {
    font-weight: 600;
    color: #495057;
    margin-right: 0.5rem;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.remove-filter {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.remove-filter:hover {
    background: rgba(255, 255, 255, 0.2);
}

.clear-filters-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-color: #dc3545;
    color: white;
}

.clear-filters-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    border-color: #c82333;
}

/* Product Grid Enhancements */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

/* Product Image Container */
.product-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.8) 0%, rgba(0, 86, 179, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-vendor-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #007bff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Product Content */
.products-grid-section {
    padding: 5rem 2rem;
    background-color:rgb(225 235 255);

}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
   
}

.product-card {
    position: relative;
    background-color: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
}

/* Create border corners */
.product-card::before,
.product-card::after {
    content: "";
    position: absolute;
    border: 2px solid var(--primary-dark-blue);
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    border-radius: 1rem;
}

/* Top-left corner */
.product-card::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

/* Bottom-right corner */
.product-card::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.product-card:hover::before,
.product-card:hover::after {
    width: 100%;
    height: 100%;
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.3));
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1rem;
}

.product-vendor-badge {
    background: var(--primary-dark-blue);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-content {
    padding: 1.5rem;
    background-color: rgb(231, 237, 248);
    width: 90%;
    border-radius: 8px;
    margin: 20px auto;
    border: 1px dashed var(--primary-dark-blue);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.product-meta {
    margin-bottom: 0.8rem;
}

.product-category {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.subcategory {
    color: var(--primary-dark-blue);
    font-weight: 600;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary-dark-blue);
    line-height: 1.3;
    min-height: 3.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5rem;
}

.product-actions {
    margin-top: auto;
    display: flex;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.product-btn {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.product-btn.primary {
    background-color: var(--primary-dark-blue);
    color: white;
}

.product-btn.primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
}

.product-btn.secondary {
    background-color: transparent;
    color: var(--secondary-blue);
    border: 1px solid var(--secondary-blue);
}

.product-btn.secondary:hover {
    background-color: var(--secondary-blue);
    color: white;
    transform: translateY(-2px);
}

/* Ensure all cards in the same row have equal height */
.products-grid {
    align-items: stretch;
}

/* Responsive adjustments - keeping existing responsive behavior */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        min-height: 400px;
    }
    
    .product-content {
        margin: 15px auto;
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1.1rem;
        min-height: 2.8rem;
    }
    
    .product-description {
        -webkit-line-clamp: 2;
        min-height: 3rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .products-grid-section {
        padding: 3rem 0;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .product-content {
        width: 95%;
        margin: 10px auto;
    }
}
/* No Products Message */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 2px dashed #dee2e6;
}

.no-products-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.no-products h3 {
    color: #495057;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-products p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Results Count */
.results-count {
    color: #6c757d;
    font-weight: normal;
    font-size: 0.9em;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Category Cards Enhancement */
.category-card {
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.6s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.category-card.active {
    border-color: #007bff;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.category-card.active .category-icon svg {
    stroke: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .filter-sections {
        gap: 1.5rem;
    }
    
    .filter-section {
        padding: 1.25rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.25rem;
    }
    
    .product-content {
        padding: 1.25rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-btn {
        flex: none;
    }
    
    .search-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .active-filters {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .product-filters-section,
    .hamburger,
    .product-btn {
        display: none;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
      

    }
}
.vn{
    color: #1e293b;
}
.back-to-all-products{
    text-decoration: none;
    font-size: 20px;
    color: #0056b3;
}
/* In your CSS file (e.g., products_enhanced.css) */

.products-grid-section .container {
    width: 100%;
    max-width: 1200px; /* Or your desired max-width */
    margin: 0 auto;
    padding: 0 15px;
}

#products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Explicitly set 4 columns */
    gap: 2rem; /* Adjust the gap as needed */
    width: 100%; /* Ensure the grid takes full width of its container */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1024px) {
    #products-grid {
        grid-template-columns: repeat(2, 0fr); /* 3 columns on tablets */
    }
}

@media (max-width: 768px) {
    #products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller tablets */
    }
}

@media (max-width: 500px) {
    #products-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}
