/* Seedling Inventory Matrix Styles */
.inventory-header {
    background-color: var(--canopy-dark);
    color: #ffffff;
    padding: 140px 0 60px 0;
    text-align: center;
}

.inventory-title {
    font-size: 42px;
    color: #ffffff;
    margin-bottom: 12px;
}

.inventory-controls {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-color);
    margin-top: -30px;
    margin-bottom: 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.search-box {
    flex: 1;
    min-width: 200px;
    width: 100%;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 18px 12px 42px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    font-size: 15px;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.category-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: var(--oxygen-light);
    color: var(--canopy-primary);
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-btn.active, .pill-btn:hover {
    background: var(--canopy-primary);
    color: #ffffff;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.species-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.species-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.species-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--canopy-primary);
}

.species-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-available {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-low {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-out {
    background-color: #fee2e2;
    color: #991b1b;
}

.species-name {
    font-size: 20px;
    margin-bottom: 4px;
}

.scientific-name {
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
    margin-bottom: 16px;
}

.species-meta {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.order-btn {
    width: 100%;
    margin-top: 16px;
    padding: 10px;
    background: var(--canopy-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.order-btn:hover {
    background: var(--growth-accent);
}

@media (max-width: 992px) {
    .inventory-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .inventory-grid { grid-template-columns: 1fr; }
    .inventory-controls { flex-direction: column; align-items: stretch; }
}
