/* Product Hub Page Styles */

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: rgba(15, 15, 35, 0.7);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-top: 75px; /* Adjust based on your nav height */
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: var(--primary-jade);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-jade);
}

.breadcrumb li:last-child {
    color: var(--primary-jade);
    font-weight: 600;
}

/* Page Header */
.page-header {
    padding: 80px 2rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(15, 15, 35, 0.9), var(--darker-bg));
    border-bottom: 1px solid var(--border-color);
}

.products-header {
    background-image: url('/images/products-header-bg.jpg'); /* Optional: Add a relevant background image */
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    position: relative;
}

.products-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 15, 35, 0.9), rgba(10, 10, 10, 0.95));
    z-index: 0;
}

.products-header .container {
    position: relative;
    z-index: 1;
}

/* Product Filter */
.product-filter {
    padding: 30px 2rem;
    background: rgba(15, 15, 35, 0.5);
    border-bottom: 1px solid var(--border-color);
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.filter-btn:hover {
    border-color: var(--primary-jade);
    color: var(--primary-jade);
    box-shadow: 0 0 15px rgba(0, 168, 107, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-jade), var(--primary-accent));
    color: var(--darker-bg);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 168, 107, 0.3);
}

/* Products Grid Section */
.products-section {
    padding: 80px 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 168, 107, 0.15);
    border-color: var(--primary-jade);
}

.product-image {
    position: relative;
    height: 200px;
    background: #1a1a1a;
    padding: 10px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 50%);
}

.product-category {
    background: var(--primary-jade);
    color: var(--darker-bg);
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
}

.product-rating {
    background: var(--primary-accent);
    color: var(--darker-bg);
    padding: 4px 10px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 4px;
}

.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-jade);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-excerpt {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.product-content .btn-secondary {
    align-self: flex-start;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}
